Exception: Pvectl::ArgvPreprocessor::DuplicateFlagError
- Defined in:
- lib/pvectl/argv_preprocessor.rb
Overview
Error raised when the same global flag is provided with different values.
Instance Method Summary collapse
-
#initialize(flag_name, existing_value, new_value) ⇒ DuplicateFlagError
constructor
Creates a new flag duplication error.
Constructor Details
#initialize(flag_name, existing_value, new_value) ⇒ DuplicateFlagError
Creates a new flag duplication error.
43 44 45 |
# File 'lib/pvectl/argv_preprocessor.rb', line 43 def initialize(flag_name, existing_value, new_value) super("Duplicate global flag --#{flag_name} with different values: #{existing_value}, #{new_value}") end |