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

Missing getParsedOptionValue which takes default value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • CLI-1.x
    • None
    • Hide
      Please add this to CommandLine for completeness...

          public Object getParsedOptionValue(String opt, Object defaultValue) throws ParseException
          {
              Object answer = getParsedOptionValue(opt);

              return (answer != null) ? answer : defaultValue;
          }
      Show
      Please add this to CommandLine for completeness...     public Object getParsedOptionValue(String opt, Object defaultValue) throws ParseException     {         Object answer = getParsedOptionValue(opt);         return (answer != null) ? answer : defaultValue;     }

    Attachments

      Activity

        People

          Unassigned Unassigned
          suchko Paul Suchko
          Votes:
          3 Vote for this issue
          Watchers:
          5 Start watching this issue

          Dates

            Created:
            Updated: