Feature: As a user, I can read the help message @help Scenario: read command line output without parameter Given cabot When I run "cabot" Then the status code is "1" And stderr display """ error: The following required arguments were not provided: USAGE: cabot --connect-timeout --dns-timeout --max-redirs --read-timeout --request --max-time --user-agent For more information try --help """ @help Scenario: read command line output from --help Given cabot When I run "cabot --help" Then the status code is "0" And stdout display """ cabot 0.7.1 Guillaume Gauvrit Simple HTTP Client. USAGE: cabot [FLAGS] [OPTIONS] FLAGS: -4, --ipv4 Resolve host names to IPv4 addresses -6, --ipv6 Resolve host names to IPv6 addresses -v, --verbose Make the operation more talkative -h, --help Prints help information -V, --version Prints version information OPTIONS: -d, --data Post Data (Using utf-8 encoding) --connect-timeout timeout for the tcp connection [default: 15] --dns-timeout timeout for the dns lookup resolution in seconds [default: 5] -o, --output Write to FILE instead of stdout -H, --header
... Pass custom header to server --max-redirs max number of redirection before returning a response [default: 16] --read-timeout timeout for the tcp read in seconds [default: 10] -X, --request Specify request command to use [default: GET] --max-time timeout for the whole http request in seconds (0 means no timeout) [default: 0] --resolve ... Resolve the host+port to this address -A, --user-agent The user-agent HTTP header to use [default: cabot/0.7.1] ARGS: URL to request """