forked from troessner/reek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.feature
42 lines (34 loc) · 1.57 KB
/
options.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@options
Feature: Reek can be controlled using command-line options
In order to change reek's default behaviour
As a developer
I want to supply options on the command line
Scenario: return non-zero status on bad option
When I run reek --no-such-option
Then it fails with exit status 1
And it reports the error "Error: invalid option: --no-such-option"
Scenario: return non-zero status on missing argument
When I run reek -f
Then it fails with exit status 1
And it reports the error "Error: missing argument: -f"
Scenario: display the current version number
When I run reek --version
Then it succeeds
And it reports the current version
Scenario: display the help information
When I run reek --help
Then it succeeds
And it reports:
"""
Usage: reek [options] files...
If no files are given, Reek reads source code from standard input.
See http://wiki.github.com/kevinrutherford/reek for detailed help.
Options:
-a, --[no-]show-all Show all smells, including those masked by config settings
-q, --quiet Suppress headings for smell-free source files
-h, --help Show this message
-f, --format FORMAT Specify the format of smell warnings
-c, --context-first Sort by context; sets the format string to "%m%c %w (%s)"
-s, --smell-first Sort by smell; sets the format string to "%m[%s] %c %w"
-v, --version Show version
"""