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

CommandLine (and WriteableCommandLine) know too much about the subclasses of Option

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.0
    • CLI-2.x
    • None

    Description

      There are certain subclasses of Option which seem to have their own areas of CommandLine and WriteableCommandLine for no apparant reason, The two obvious ones are Switch and PropertyOption which have

      {add, get}

      Switch and

      {add,get}

      Property respectively. I can't see why they couldn't simply use addValue with a value of Boolean and Property ( a class for holding key-value pairs) This would allow any subclass of Option to get the same treatment from CommandLine and provide a cleaner interface between Options and Commandlines

      Attachments

        Activity

          People

            Unassigned Unassigned
            aks Andrew Shirley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: