]> sourceware.org Git - libabigail.git/commit
Better diagnostics when abipkgdiff has an extra argument
authorDodji Seketeli <dodji@redhat.com>
Fri, 27 May 2016 22:00:33 +0000 (00:00 +0200)
committerDodji Seketeli <dodji@redhat.com>
Mon, 30 May 2016 14:24:53 +0000 (16:24 +0200)
commit9086b015d1dd56eaa97d96ef254f760ed0ec8842
tree15d9d82247649158ff162f200e80e574ed60b39d
parentef782b7536d8c22e003e4bfd541c05eb450e38c1
Better diagnostics when abipkgdiff has an extra argument

When abipkgdiff is launched with three packages to compare rather than
just two, it gives a nonsensical error, just like if a wrong option was
given.  This patch fixes that.

* tools/abipkgdiff.cc (options::wrong_arg): New data member.
(parse_command_line): Set options::wrong_arg
to the wrong argument passed.
(main): Tell wrong argument case apart, and report it.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tools/abipkgdiff.cc
This page took 0.03912 seconds and 5 git commands to generate.