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

Usage Scenario help page misleading

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: Documentation
    • Labels:
      None
    • Bugzilla Id:
      33044

      Description

      The CLI Usage Scenario text is misleading in the Ant example.
      Specifically the Boolean option code example seems wrong - instead it should
      surely be:

      Option help = new Option( null, "help", "print this message" );
      Option projecthelp = new Option( null, "projecthelp", "print project help
      information" );
      Option version = new Option( null, "version", "print the version information
      and exit" );
      Option quiet = new Option( null, "quiet", "be extra quiet" );
      Option verbose = new Option( null, "verbose", "be extra verbose" );
      Option debug = new Option( null, "debug", "print debugging information" );
      Option emacs = new Option( null, "emacs",
      "produce logging information without adornments" );

      Since these are Long Options, not short ?
      Took me ages to figure out why my code didn't behave properly!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tim.fulcher@bt.com tim
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: