feat: Support required options; Support default option values #62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: Adds support for Required options
feat: Adds required indicator on option help screen
feat: Adds error messaging when required options not provided
feat: Adds support for Default option values
feat: Adds default indicator on option help screen
feat: For boolean options, a default value ALWAYS implies 'true'
Will show configured default in help text
OPTION BOOL ?= enabled -b, --bool
-b, --bool (default: enabled)
Variable will be set to TRUE ("1") unless set to false via CLI
--bool=false | f | 0
feat: Adds support for explicitly marking option as Optional
chore: Renames config option Value to Example
chore: Removes unused interfaces / methods from command.go
chore: Processes option variable assignments in the order they are defined
TODO:
Fixes #61
cc: @nikolay Care to give this a try?