Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newlines in Options cause other options to be ignored. #13

Open
jdbernard opened this issue Apr 17, 2017 · 1 comment
Open

Newlines in Options cause other options to be ignored. #13

jdbernard opened this issue Apr 17, 2017 · 1 comment

Comments

@jdbernard
Copy link

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
Copy link
Author

May be a duplicate of #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant