Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels