Implement basic CLI usage help

This commit is contained in:
Thibault Jouan
2015-04-07 17:34:16 +00:00
parent f38a5761be
commit 422a940eae
6 changed files with 184 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
Feature: CLI usage
Scenario: prints the usage when unknown option switch is given
When I run uhwm with option --unknown-option
Then the exit status must be 64
And the output must contain exactly the usage
Scenario: prints the help when -h option is given
When I run uhwm with option -h
Then the exit status must be 0
And the output must contain exactly the usage