Skip to content

Commit

Permalink
chore(commands): update command usage notes
Browse files Browse the repository at this point in the history
  • Loading branch information
devnote-dev committed Sep 30, 2024
1 parent 716a9ce commit 877196e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/bisect.cr
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Crimson::Commands

add_alias "bi"
add_usage "bisect [-F|--fail-first] [-o|--order <asc|desc|random>] [--from <version>]" \
"\n\t[--to <version>] [-p|--progress] <args>"
"\n\t[--to <version>] [-p|--progress] <args...>"

add_argument "args", description: "the command to test", multiple: true, required: true
add_option 'F', "fail-first", description: "exit early at the first failed test"
Expand Down
2 changes: 1 addition & 1 deletion src/commands/install.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Crimson::Commands
DESC

add_alias "in"
add_usage "install [-a|--alias <name>] [-f|--fetch] [-s|--switch] [version]"
add_usage "install [-a|--alias <name>] [-d|--default] [-f|--fetch] [-s|--switch] [version]"

add_argument "version", description: "the version to install"
add_option 'a', "alias", description: "set the alias of the version", type: :single
Expand Down
2 changes: 2 additions & 0 deletions src/commands/setup.cr
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ module Crimson::Commands
DESC
{% end %}

add_usage "setup [-s|--skip-dependencies] [-y|--yes]"

add_option 's', "skip-dependencies", description: "skip installing external dependencies"
add_option 'y', "yes", description: "allow all permission prompts"
end
Expand Down
2 changes: 1 addition & 1 deletion src/commands/switch.cr
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Crimson::Commands
add_usage "switch --delete"

add_argument "target", description: "the version or version alias to switch to"
add_option 'd', "delete", description: "remove this as"
add_option 'd', "delete", description: "remove the version as current"
end

def run(arguments : Cling::Arguments, options : Cling::Options) : Nil
Expand Down

0 comments on commit 877196e

Please sign in to comment.