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