Skip to content

Commit 57b4801

Browse files
cleanup: Minor changes to --help output. (#40)
1 parent a9ccd75 commit 57b4801

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

scip_indexer/SCIPIndexer.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,9 +1248,8 @@ class SCIPSemanticExtensionProvider : public SemanticExtensionProvider {
12481248
public:
12491249
void injectOptions(cxxopts::Options &optsBuilder) const override {
12501250
optsBuilder.add_options("indexer")("index-file", "Output SCIP index to a directory, which must already exist",
1251-
cxxopts::value<string>());
1252-
optsBuilder.add_options("name@version")(
1253-
"gem-metadata", "Name and version pair to be used for cross-repository code navigation.",
1251+
cxxopts::value<string>())(
1252+
"gem-metadata", "Metadata in 'name@version' format to be used for cross-repository code navigation.",
12541253
cxxopts::value<string>());
12551254
};
12561255
unique_ptr<SemanticExtension> readOptions(cxxopts::ParseResult &providedOptions) const override {

test/scip_test_runner.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,8 @@ bool ends_with(const std::string &s, const std::string &suffix) {
482482
int main(int argc, char *argv[]) {
483483
cxxopts::Options options("test_corpus_scip", "SCIP test corpus for Sorbet typechecker");
484484
options.allow_unrecognised_options().add_options()("output", "path to output file or directory",
485-
cxxopts::value<std::string>()->default_value(""),
486-
"path")("update-snapshots", "");
487-
//("--update-snapshots", "should the snapshot files be overwritten if there are changes");
485+
cxxopts::value<std::string>()->default_value(""), "path")(
486+
"update-snapshots", "should the snapshot files be overwritten if there are changes");
488487
auto res = options.parse(argc, argv);
489488
auto unmatched = res.unmatched();
490489

0 commit comments

Comments
 (0)