We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2446680 + 524ea0c commit d6116b6Copy full SHA for d6116b6
lib/octocatalog-diff/cli/options.rb
@@ -23,7 +23,6 @@ def self.classes
23
24
# Define the Option class and newoption() method for use by cli/options/*.rb files
25
class Option
26
- DEFAULT_WEIGHT = 999
27
def self.has_weight(w) # rubocop:disable Style/PredicateName
28
@weight = w
29
end
@@ -38,7 +37,9 @@ def self.weight
38
37
elsif @weight
39
@weight
40
else
41
- DEFAULT_WEIGHT
+ # :nocov:
+ raise ArgumentError, "Option #{name} does not have a weight specified. Add 'has_weight NNN' to control ordering."
42
43
44
45
0 commit comments