Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-155

optional @Argument values (and I guess @Option values) can have default values which could be displayed in the help screen by reflecting into the value and finding non-zero/null values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.1.0
    • karaf
    • None

    Description

      For example for

      class MyCommand extends Action {
        @Argument(required = false, description = "whatnot")
        String foo = "someDefault";
      
         ...
      }
      

      when printing the help for "foo" argument we could mention the default value is "someDefault" in the help screen.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: