Skip to content

Commit

Permalink
feat: show help when calling cpl with no command
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelgomesxyz committed Oct 19, 2023
1 parent 47c9fe9 commit d71ab14
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/command/no_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d71ab14

Please sign in to comment.