Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-189

"Unexpected --help while processing"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0
    • 2.0
    • CLI-2.x, Help formatter
    • None
    • snapshot jar

    Description

      The help trigger feature seems not working.
      When I pass --help to the command line, I have "Unexpected --help while processing", then usage is printed.
      Code snippet:

       Parser parser = new Parser();
       parser.setGroup(group);
       parser.setHelpFormatter(new HelpFormatter());
       parser.setHelpTrigger("--help");
       parser.parseAndHelp(args);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            gperrot Guillaume Perrot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: