diff --git a/doc/manuals/abidw.rst b/doc/manuals/abidw.rst index c832b693..11785a0f 100644 --- a/doc/manuals/abidw.rst +++ b/doc/manuals/abidw.rst @@ -20,11 +20,11 @@ Invocation Options ======= - * ``--help`` + * ``--help | -h`` Display a short help about the command and exit. - * ``--debug-info-dir`` <*dir-path*> + * ``--debug-info-dir | -d`` <*dir-path*> In cases where the debug info for *path-to-elf-file* is in a separate file that is located in a non-standard place, this tells diff --git a/tools/abidw.cc b/tools/abidw.cc index 3c4c7f5d..77a1cb6f 100644 --- a/tools/abidw.cc +++ b/tools/abidw.cc @@ -70,8 +70,8 @@ display_usage(const string& prog_name, ostream& out) { out << "usage: " << prog_name << " [options] []\n" << " where options can be: \n" - << " --help display this message\n" - << " --debug-info-dir look for debug info under 'dir-path'\n" + << " --help|-h display this message\n" + << " --debug-info-dir|-d look for debug info under 'dir-path'\n" << " --out-file write the output to 'file-path'\n" << " --no-architecture do not emit architecture info in the output\n" << " --check-alternate-debug-info check alternate debug info " @@ -98,7 +98,8 @@ parse_command_line(int argc, char* argv[], options& opts) else return false; } - else if (!strcmp(argv[i], "--debug-info-dir")) + else if (!strcmp(argv[i], "--debug-info-dir") + || !strcmp(argv[i], "-d")) { if (argc <= i + 1 || argv[i + 1][0] == '-' @@ -137,7 +138,8 @@ parse_command_line(int argc, char* argv[], options& opts) } else if (!strcmp(argv[i], "--load-all-types")) opts.load_all_types = true; - else if (!strcmp(argv[i], "--help")) + else if (!strcmp(argv[i], "--help") + || !strcmp(argv[i], "--h")) return false; else return false;