Browse Source

Add --help command-line flag.

tags/v2.2.3
Andrew Belt 1 year ago
parent
commit
108f9f3188
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      adapters/standalone.cpp

+ 6
- 0
adapters/standalone.cpp View File

@@ -82,6 +82,7 @@ int main(int argc, char* argv[]) {
{"system", required_argument, NULL, 's'},
{"user", required_argument, NULL, 'u'},
{"version", no_argument, NULL, 'v'},
{"help", no_argument, NULL, 256},
{NULL, 0, NULL, 0}
};
int c;
@@ -112,6 +113,11 @@ int main(int argc, char* argv[]) {
std::fprintf(stderr, "%s\n", appInfo.c_str());
return 0;
}
case 256: { // --help
std::fprintf(stderr, "%s\n", appInfo.c_str());
std::fprintf(stderr, "https://vcvrack.com/manual/Installing#Command-line-usage\n");
return 0;
}
// Mac "app translocation" passes a nonsense -psn_... flag, so -p is reserved.
case 'p': break;
default: break;


Loading…
Cancel
Save