Skip to content

Commit

Permalink
fix: update flags.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Jan 2, 2024
1 parent 2356a96 commit c45a5be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ static flags = {
options: ['a', 'b'], // only allow the value to be from a discrete set
parse: async input => 'output', // instead of the user input, return a different value
default: 'world', // default value if flag not passed (can be an async function that returns a string or undefined)
defaultHelp: 'a dynamic value' // dyanmic default value to show in help output (e.g. current working directory). Can be an async function that returns a string or undefined
required: false, // make flag required
aliases: ['username', 'u'], // aliases for the flag - can be short char or long flags
deprecateAliases: false, // emit deprecation warning anytime a flag alias is provided
Expand Down

0 comments on commit c45a5be

Please sign in to comment.