From a97bbca5f0edc6391e00dfe29da89af6cc99ea99 Mon Sep 17 00:00:00 2001 From: Varun Gandhi Date: Thu, 28 Jul 2022 23:11:16 +0800 Subject: [PATCH] cleanup: Minor changes to --help output. --- scip_indexer/SCIPIndexer.cc | 5 ++--- test/scip_test_runner.cc | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/scip_indexer/SCIPIndexer.cc b/scip_indexer/SCIPIndexer.cc index a192b59a47..e1c4acbca7 100644 --- a/scip_indexer/SCIPIndexer.cc +++ b/scip_indexer/SCIPIndexer.cc @@ -1248,9 +1248,8 @@ class SCIPSemanticExtensionProvider : public SemanticExtensionProvider { public: void injectOptions(cxxopts::Options &optsBuilder) const override { optsBuilder.add_options("indexer")("index-file", "Output SCIP index to a directory, which must already exist", - cxxopts::value()); - optsBuilder.add_options("name@version")( - "gem-metadata", "Name and version pair to be used for cross-repository code navigation.", + cxxopts::value())( + "gem-metadata", "Metadata in 'name@version' format to be used for cross-repository code navigation.", cxxopts::value()); }; unique_ptr readOptions(cxxopts::ParseResult &providedOptions) const override { diff --git a/test/scip_test_runner.cc b/test/scip_test_runner.cc index b9264c4790..ef23d5c7ee 100644 --- a/test/scip_test_runner.cc +++ b/test/scip_test_runner.cc @@ -431,9 +431,8 @@ bool ends_with(const std::string &s, const std::string &suffix) { int main(int argc, char *argv[]) { cxxopts::Options options("test_corpus_scip", "SCIP test corpus for Sorbet typechecker"); options.allow_unrecognised_options().add_options()("output", "path to output file or directory", - cxxopts::value()->default_value(""), - "path")("update-snapshots", ""); - //("--update-snapshots", "should the snapshot files be overwritten if there are changes"); + cxxopts::value()->default_value(""), "path")( + "update-snapshots", "should the snapshot files be overwritten if there are changes"); auto res = options.parse(argc, argv); for (auto &input : res.unmatched()) {