Replace --lkaw with -w and --lkaw-pkg with --wp

Make these short options be shorter.

	* doc/manuals/abipkgdiff.rst: Adjust the documentation.
	* tools/abipkgdiff.cc (display_usage): Adjust the usage string.
	(parse_command_line): Parse -w instead of --lkaw and --wp
	insteadof --lkaw-pkg.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2017-07-11 16:32:42 +02:00
parent 893a171d71
commit 6cf8f0b21f
2 changed files with 6 additions and 6 deletions

View File

@ -184,7 +184,7 @@ Options
the :ref:`default suppression specification files
<abipkgdiff_default_supprs_label>` are loaded .
* ``--linux-kernel-abi-whitelist | --lkaw`` <*path-to-whitelist*>
* ``--linux-kernel-abi-whitelist | -w`` <*path-to-whitelist*>
When comparing two Linux kernel RPM packages, this option points
to the white list of names of ELF symbols of functions and
@ -200,7 +200,7 @@ Options
functions and global variables by the Linux Kernel binaries are
compared.
* ``--lkaw-pkg`` <*path-to-whitelist-package*>
* ``--wp`` <*path-to-whitelist-package*>
When comparing two Linux kernel RPM packages, this option points
an RPM package containining several white lists of names of ELF

View File

@ -636,9 +636,9 @@ display_usage(const string& prog_name, ostream& out)
<< " --no-default-suppression don't load any default "
"suppression specifications\n"
<< " --suppressions|--suppr <path> specify supression specification path\n"
<< " --linux-kernel-abi-whitelist|--lkaw path to a "
<< " --linux-kernel-abi-whitelist|-w path to a "
"linux kernel abi whitelist\n"
<< " --lkaw-pkg <path> path to a linux kernel abi whitelist package\n"
<< " --wp <path> path to a linux kernel abi whitelist package\n"
<< " --keep-tmp-files don't erase created temporary files\n"
<< " --dso-only compare shared libraries only\n"
<< " --no-linkage-name do not display linkage names of "
@ -2281,7 +2281,7 @@ parse_command_line(int argc, char* argv[], options& opts)
++i;
}
else if (!strcmp(argv[i], "--linux-kernel-abi-whitelist")
|| !strcmp(argv[i], "--lkaw"))
|| !strcmp(argv[i], "-w"))
{
int j = i + 1;
if (j >= argc)
@ -2293,7 +2293,7 @@ parse_command_line(int argc, char* argv[], options& opts)
opts.kabi_whitelist_paths.push_back(argv[j]);
++i;
}
else if (!strcmp(argv[i], "--lkaw-pkg"))
else if (!strcmp(argv[i], "--wp"))
{
int j = i + 1;
if (j >= argc)