Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/cli.cr
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ module Shards
opts.on("-q", "--quiet", "Decrease the log verbosity, printing only warnings and errors.") { self.set_warning_log_level }
opts.on("-h", "--help", "Print usage synopsis.") { display_help = true }

if cli_options[0]? == "--help"
display_help_and_exit(opts)
end

opts.unknown_args do |args, options|
case args[0]? || DEFAULT_COMMAND
when "build"
Expand Down