lib/clamp/subcommand/parsing.rb in clamp-0.4.0 vs lib/clamp/subcommand/parsing.rb in clamp-0.5.0
- old
+ new
@@ -1,5 +1,7 @@
+require 'clamp/subcommand/execution'
+
module Clamp
class Subcommand
module Parsing
@@ -7,11 +9,10 @@
def parse_subcommand
return false unless self.class.has_subcommands?
subcommand_name = parse_subcommand_name
@subcommand = instatiate_subcommand(subcommand_name)
- @subcommand.parse(remaining_arguments)
- remaining_arguments.clear
+ self.extend(Subcommand::Execution)
end
private
def parse_subcommand_name