diff --git a/doc/manuals/abidiff.rst b/doc/manuals/abidiff.rst index 20a2b16b..c9260b89 100644 --- a/doc/manuals/abidiff.rst +++ b/doc/manuals/abidiff.rst @@ -32,7 +32,7 @@ Options Display a short help about the command and exit. - * --debug-info-dir1 <*di-path1*> + * --debug-info-dir1 | --d1 <*di-path1*> For cases where the debug information for *first-shared-library* is split out into a separate file, tells ``abidiff`` where to find @@ -47,7 +47,7 @@ Options information installed by your system's package manager because then ``abidiff`` knows where to find it. - * --debug-info-dir2 <*di-path2*> + * --debug-info-dir2 | --d2 <*di-path2*> Like ``--debug-info-dir1``, this options tells ``abidiff`` where to find the split debug information for the diff --git a/tools/abidiff.cc b/tools/abidiff.cc index 3c8963e9..118d9cf2 100644 --- a/tools/abidiff.cc +++ b/tools/abidiff.cc @@ -107,10 +107,10 @@ struct options static void display_usage(const string& prog_name, ostream& out) { - out << "usage: " << prog_name << " [options] [ ]\n" + out << "usage: " << prog_name << " [options] [ ]\n" << " where options can be:\n" - << " --debug-info-dir1 the root for the debug info of bi-file1\n" - << " --debug-info-dir2 the root for the debug info of bi-file2\n" + << " --debug-info-dir1|--d1 the root for the debug info of file1\n" + << " --debug-info-dir2|--d2 the root for the debug info of file2\n" << " --stat only display the diff stats\n" << " --symtabs only display the symbol tables of the corpora\n" << " --deleted-fns display deleted public functions\n" @@ -169,7 +169,8 @@ parse_command_line(int argc, char* argv[], options& opts) else return false; } - else if (!strcmp(argv[i], "--debug-info-dir1")) + else if (!strcmp(argv[i], "--debug-info-dir1") + || !strcmp(argv[i], "--d1")) { int j = i + 1; if (j >= argc) @@ -183,7 +184,8 @@ parse_command_line(int argc, char* argv[], options& opts) abigail::tools_utils::make_path_absolute(argv[j]); ++i; } - else if (!strcmp(argv[i], "--debug-info-dir2")) + else if (!strcmp(argv[i], "--debug-info-dir2") + || !strcmp(argv[i], "--d2")) { int j = i + 1; if (j >= argc)