diff --git a/lib/command/no_command.rb b/lib/command/no_command.rb index af168c01..69fda9b1 100644 --- a/lib/command/no_command.rb +++ b/lib/command/no_command.rb @@ -11,9 +11,11 @@ class NoCommand < Base HIDE = true def call - return unless config.options[:version] - - Cpl::Cli.start(["version"]) + if config.options[:version] + Cpl::Cli.start(["version"]) + else + Cpl::Cli.start(["help"]) + end end end end