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

[cli] Setting description of a Option

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.1
    • Component/s: CLI-1.x
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      31151

      Description

      The description of an Option cannot be changed after it is created. A
      setDescription() function is desired.

      /**

      • Sets the self-documenting description of this Option
        *
      • @param description The description of this option
        */
        public void setDescription(String description) { this.description = description; }

        Activity

        Hide
        roxspring Rob Oxspring added a comment -

        Don't see an immediate need for this... will think more post 2.0

        Show
        roxspring Rob Oxspring added a comment - Don't see an immediate need for this... will think more post 2.0
        Hide
        gawor@mcs.anl.gov Jarek Gawor added a comment -

        I'm wondering if this can be committed. This is a really simple change. Almost
        every other member in that class can be set except the description field. We
        use it to change the description dynamically with value that's generated at
        runtime.

        Show
        gawor@mcs.anl.gov Jarek Gawor added a comment - I'm wondering if this can be committed. This is a really simple change. Almost every other member in that class can be set except the description field. We use it to change the description dynamically with value that's generated at runtime.
        Hide
        bayard Henri Yandell added a comment -

        Done. Applied to:

        src/java/org/apache/commons/cli/Option.java

        I can't see any harm in applying it.

        Still unsure what the future should be with respect to cli vs cli2 packages.

        Show
        bayard Henri Yandell added a comment - Done. Applied to: src/java/org/apache/commons/cli/Option.java I can't see any harm in applying it. Still unsure what the future should be with respect to cli vs cli2 packages.

          People

          • Assignee:
            Unassigned
            Reporter:
            gawor@mcs.anl.gov Jarek Gawor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development