Make abidw --headers-dir work with the --out-file option
authorDodji Seketeli <dodji@redhat.com>
Mon, 13 Feb 2017 16:37:58 +0000 (17:37 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 13 Feb 2017 16:37:58 +0000 (17:37 +0100)
* tools/abidw.cc (parse_command_line): Don't require an empty
output file when parsing the --headers-dir option.  This was a
thinko.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tools/abidw.cc

index d132c02e1b4799251638440722a80baf749da8ed..418b593b7b4745ad027893e0b838b3bdb5ef1654 100644 (file)
@@ -167,8 +167,7 @@ parse_command_line(int argc, char* argv[], options& opts)
               || !strcmp(argv[i], "-d"))
        {
          if (argc <= i + 1
-             || argv[i + 1][0] == '-'
-             || !opts.out_file_path.empty())
+             || argv[i + 1][0] == '-')
            return false;
          // elfutils wants the root path to the debug info to be
          // absolute.