Skip to content

Commit 88f8a6f

Browse files
author
Kevin Paulisse
committed
Correct error messages in command line validation
1 parent 4e93f5e commit 88f8a6f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/octocatalog-diff/catalog-diff/cli/options/hiera_path_strip.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ def parse(parser, options)
1111
end
1212

1313
if options[:hiera_path_strip] == :none
14-
raise ArgumentError, '--hiera-path and --no-hiera-path are mutually exclusive'
14+
raise ArgumentError, '--hiera-path-strip and --no-hiera-path-strip are mutually exclusive'
1515
end
1616

1717
options[:hiera_path_strip] = path_in
1818
end
1919

2020
parser.on('--no-hiera-path-strip', 'Do not use any default hiera path strip settings') do
2121
if options[:hiera_path_strip].is_a?(String)
22-
raise ArgumentError, '--hiera-path and --no-hiera-path are mutually exclusive'
22+
raise ArgumentError, '--hiera-path-strip and --no-hiera-path-strip are mutually exclusive'
2323
end
2424
options[:hiera_path_strip] = :none
2525
end

0 commit comments

Comments
 (0)