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

Configure Options from usage statement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Options definition
    • None

    Description

      I wrote a layer on top of JSAP to configure its parser from a simple usage statement. I tried to push that code back to the developer, with no success. I'd like to see that code get into production somewhere so I can stop using my private fork.

      For JSAP, configuration turned into this:
      SimplerJSAP jsap = new SimplerJSAP("dbname [--taglist<String>] [--alternativeTagpaths<File>]");
      JSAPResult config = jsap.parse(args);

      This is much simpler and much much more readable than the JSAP code and it looks to me like the CLI version is just as complicated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ralphlevan Ralph LeVan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: