mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-21 17:30:22 +00:00
Add -h and -d option shortcuts to abidw
Added a -h option shortcut for the --help option and a -d option shortcut for the --debug-info-dir option, to the abidw program. * tools/abidw.cc (display_usage): Added a documentation string. (parse_command_line): Parse the new -h and -d shortcuts. * doc/manuals/abidw.rst: Update the manual. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
71acc72064
commit
c09bb53ab1
@ -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
|
||||
|
@ -70,8 +70,8 @@ display_usage(const string& prog_name, ostream& out)
|
||||
{
|
||||
out << "usage: " << prog_name << " [options] [<path-to-elf-file>]\n"
|
||||
<< " where options can be: \n"
|
||||
<< " --help display this message\n"
|
||||
<< " --debug-info-dir <dir-path> look for debug info under 'dir-path'\n"
|
||||
<< " --help|-h display this message\n"
|
||||
<< " --debug-info-dir|-d <dir-path> look for debug info under 'dir-path'\n"
|
||||
<< " --out-file <file-path> write the output to 'file-path'\n"
|
||||
<< " --no-architecture do not emit architecture info in the output\n"
|
||||
<< " --check-alternate-debug-info <elf-path> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user