docopt.java icon indicating copy to clipboard operation
docopt.java copied to clipboard

Newlines in Options cause other options to be ignored.

Open jdbernard opened this issue 8 years ago • 1 comments

The following parses correctly on try.docopt.org but using docopt.java fails to recognize the options after -h as options.

Usage:
  traffic_monitor [options] <logfile>

Options:
  -v, --version   Print the version information.
  -h, --help      Show this usage information.

  -t, --alert-threshold <threshold>
  
    How many requests within the alert period are required to trigger an alert?
    Defaults to 1000.

  -p, --alert-period <alert-period>
  
    Alert period (in seconds). Defaults to 120 second.

  -r, --refresh-period <refresh-period>
  
    Refresh/recalculate period (in milliseconds). Defaults to 1000, minimum
    value of 50 ms.

  -d, --display-period <display-period>
  
    Period (in seconds) for the display of statistics. Defaults to 10.

  -a, --include-all-entries
  
    By default traffic_monitor only analyzes log entries that are appended to
    the log after the monitor is started. Using this flag will cause
    traffic_monitor to include all the entries already in the log file in its
    analysis.

jdbernard avatar Apr 17 '17 11:04 jdbernard

May be a duplicate of #11

jdbernard avatar Apr 17 '17 11:04 jdbernard