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

[PATCH] [CLI] Default Values for Arguments at definition stage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • CLI-2.x
    • None
    • Operating System: other
      Platform: Other

    • 31007

    Description

      Sorry, I don't have CVS access at my current work and therefore this may not
      be the right way to submit this patch, but I wanted to get this out before the
      weekend.

      [CLI2 - B1]
      The functionality of using default values for Arguments at definition stage
      does not work. I looked at the test cases and the test cases relating to this
      functionality have been commented out, so my guess is that it may have been
      left for a later release. I have done a quick fix, which may or may not be the
      best way, but it doesn't break any existing functionality and seems to fulfill
      the requirement.

      Changes are in three files, ArgumentImpl.java (in method processValues), in
      WriteableCommandLine.java (added a new method called addDefaults in this
      interface) and WriteableCommandLineImpl.java (implemented the addDefaults
      method).

      I will attach the three files after submitting the bug.


      Vikram

      Attachments

        Activity

          People

            Unassigned Unassigned
            gvix Vikram Goyal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: