pairwise 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/lib/pairwise/cli.rb +8 -4
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/pairwise/cli.rb
CHANGED
|
@@ -4,9 +4,9 @@ module Pairwise
|
|
|
4
4
|
class Cli
|
|
5
5
|
BUILTIN_FORMATS = {
|
|
6
6
|
'cucumber' => [Pairwise::Formatter::Cucumber,
|
|
7
|
-
'
|
|
7
|
+
'Tables for Cucumber'],
|
|
8
8
|
'csv' => [Pairwise::Formatter::Csv,
|
|
9
|
-
'
|
|
9
|
+
'Comma seperated values']}
|
|
10
10
|
|
|
11
11
|
max = BUILTIN_FORMATS.keys.map{|s| s.length}.max
|
|
12
12
|
FORMAT_HELP = (BUILTIN_FORMATS.keys.sort.map do |key|
|
|
@@ -31,10 +31,14 @@ module Pairwise
|
|
|
31
31
|
"Example:",
|
|
32
32
|
"pairwise data/inputs.yml", "", "",
|
|
33
33
|
].join("\n")
|
|
34
|
-
opts.on("-k", "--keep-wild-cards"
|
|
34
|
+
opts.on("-k", "--keep-wild-cards",
|
|
35
|
+
"Don't automatically replace any wild-cards which appear",
|
|
36
|
+
"in the pairwise data") do
|
|
35
37
|
@options[:keep_wild_cards] = true
|
|
36
38
|
end
|
|
37
|
-
opts.on('-f FORMAT', '--format FORMAT',
|
|
39
|
+
opts.on('-f FORMAT', '--format FORMAT',
|
|
40
|
+
"How to format pairwise data (Default: cucumber). Available formats:",
|
|
41
|
+
*FORMAT_HELP) do |format|
|
|
38
42
|
@options[:format] = format
|
|
39
43
|
end
|
|
40
44
|
opts.on_tail("--version", "Show version.") do
|