[LLVMbugs] [Bug 429] NEW: CommandLine should provide program name in error output

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Aug 24 13:08:38 PDT 2004


           Summary: CommandLine should provide program name in error output
           Product: libraries
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Support Libraries
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at x10sys.com

Currently, CommandLine will print out an unadorned error message if it
encounters and error while processing the command line options. For example:

-v option: may only occur zero or one times!

For tools that invoke other tools (like llvmc), this isn't good because it isn't
clear to which tool the -v option was passed. To disambiguate, we need to have
CommandLine (and anything else!) that exits with an error message to print out
the program's name.

There's two solutions to this:

1. make CommandLine always throw std::string()
2. make CommandLine print argv[0] first.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list