lib/clamp/subcommand/execution.rb in clamp-1.3.0 vs lib/clamp/subcommand/execution.rb in clamp-1.3.1
- old
+ new
@@ -29,10 +29,10 @@
end
subcommand
end
def invocation_path_for(name)
- param_names = self.class.inheritable_parameters.map(&:name)
+ param_names = self.class.parameters.select(&:inheritable?).map(&:name)
[invocation_path, *param_names, name].join(" ")
end
def find_subcommand_class(name)
subcommand_def = self.class.find_subcommand(name)