mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-31 05:41:38 +00:00
Add a -h shortcup to abipkgdiff --help
* tools/abipkgdiff.cc (display_usage): Document the -h shortcut. (parse_command_line): Parse the -h shortcut to --help. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
242e49a321
commit
da870f3598
@ -32,7 +32,7 @@ Invocation
|
||||
Options
|
||||
=======
|
||||
|
||||
* ``--help``
|
||||
* ``--help | -h``
|
||||
|
||||
Display a short help about the command and exit.
|
||||
|
||||
|
@ -369,7 +369,7 @@ display_usage(const string& prog_name, ostream& out)
|
||||
<< " --no-added-syms do not display added functions or variables\n"
|
||||
<< " --no-added-binaries do not display added binaries\n"
|
||||
<< " --verbose emit verbose progress messages\n"
|
||||
<< " --help display help message\n";
|
||||
<< " --help|-h display help message\n";
|
||||
}
|
||||
|
||||
/// Extract an RPM package.
|
||||
@ -945,7 +945,8 @@ parse_command_line(int argc, char* argv[], options& opts)
|
||||
opts.suppression_paths.push_back(argv[j]);
|
||||
++i;
|
||||
}
|
||||
else if (!strcmp(argv[i], "--help"))
|
||||
else if (!strcmp(argv[i], "--help")
|
||||
|| !strcmp(argv[i], "-h"))
|
||||
{
|
||||
opts.display_usage = true;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user