Skip to content

cleanup: Minor changes to --help output. #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions scip_indexer/SCIPIndexer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>());
optsBuilder.add_options("name@version")(
"gem-metadata", "Name and version pair to be used for cross-repository code navigation.",
cxxopts::value<string>())(
"gem-metadata", "Metadata in 'name@version' format to be used for cross-repository code navigation.",
cxxopts::value<string>());
};
unique_ptr<SemanticExtension> readOptions(cxxopts::ParseResult &providedOptions) const override {
Expand Down
5 changes: 2 additions & 3 deletions test/scip_test_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string>()->default_value(""),
"path")("update-snapshots", "");
//("--update-snapshots", "should the snapshot files be overwritten if there are changes");
cxxopts::value<std::string>()->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()) {
Expand Down