vmc-ng/lib/vmc/cli.rb in vmc-0.4.0.beta.43 vs vmc-ng/lib/vmc/cli.rb in vmc-0.4.0.beta.44
- old
+ new
@@ -92,10 +92,10 @@
def execute(cmd, argv, global = {})
if input[:help]
invoke :help, :command => cmd.name.to_s
else
- cmd.context.new.precondition if cmd.context <= CLI
+ precondition
super
end
rescue Interrupt
exit_status 130
rescue Mothership::Error