1 Feature: Show help and version for the hostip utility
3 Display the help when the -h switch is given.
5 Scenario: start with the -h switch.
8 Then the output should contain:
12 And the exit status should be 0
14 Scenario: start with the --help switch
16 When I run `hostip --help`
17 Then the output should contain:
21 And the exit status should be 0
23 Scenario: start with a nonexistent switch
25 When I run `hostip -%`
26 Then the output should contain:
30 And the exit status should be 1
32 Scenario: start the -V switch
34 When I run `hostip -V`
35 Then the output should contain:
39 And the output should not contain:
43 And the exit status should be 0