Skip to content

Commit

Permalink
feat: document hidden arguments & options
Browse files Browse the repository at this point in the history
  • Loading branch information
devnote-dev committed Sep 24, 2023
1 parent b83b9d3 commit 63e251a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ class MainCommand < Cling::Command
# set it as a required or optional argument
required: true,
# allow multiple values for the argument
multiple: false
multiple: false,
# make it hidden from the help template
hidden: false
# define an option with a short flag using chars
add_option 'c', "caps",
Expand All @@ -175,7 +177,9 @@ class MainCommand < Cling::Command
# or :multiple to take multiple arguments
type: :none,
# optionally set a default value
default: nil
default: nil,
# make it hidden from the help template
hidden: false
end
end
```
Expand Down

0 comments on commit 63e251a

Please sign in to comment.