Use Cobra's PreRun function to parse the arguments #1539
Labels
topic: CLI
Related to the command line interface
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
We already use the PreRun here
We could leverage it to consume the args given to a command before running the actual run function
https://github.com/spf13/cobra/blob/master/user_guide.md#prerun-and-postrun-hooks
The text was updated successfully, but these errors were encountered: