-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cmdfactory): Correctly handle dynamically registered flags
Instead of filtering out dynamically registered flags, expand them such that the `ParseFlags` method is able to correctly handle them. Since some dynamically registered flags may not necessarily have a command associated with it yet, adjust `expandRegisteredFlags` to handle nil values. This ultimately fixes the issue where dynamically registered flags would not have been otherwised parsed. Signed-off-by: Alexander Jung <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters