8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/barthes/cli.rb', line 8
def self.parse_options
@opt = Slop.parse!(help: true) do
banner 'Usage: barthes [options] /path/to/some_spec.json'
on 'e', 'env', 'environment file paths', argument: :optional, as: Array
on 'q', 'quiet', 'not show test details', argument: :optional, as: :count
on 'f', 'from', 'test number to start from', argument: :optional, as: Integer, default: 1
on 't', 'to', 'test number to stop to', argument: :optional, as: Integer
on 'l', 'load', 'An optional password', argument: :optional
on 'd', 'dryrun', 'not run test but show just structure', argument: :optional, as: :count
on 'c', 'cache', 'cache path', argument: :optional, default: './barthes-cache.json'
on 'r', 'reporters', 'reporters to use', argument: :optional, as: Array
on 'j', 'junit-xml', 'junit xml output path', argument: :optional
on 'g', 'tags', 'tags to filter actions', argument: :optional, as: Array
on 'n', 'no-tags', 'tags to filter no actions', argument: :optional, as: Array
end
@opt.to_hash
end
|