-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix servenv of incorrect variable for moveFlags
- It looks like cmd.Use was accidenatlly used instead of `cmd.Name()` - `cmd.Use` is actaully the help text, not the name of the command - This was not allowing commands to make use of registered/available flags for their use (IE --grpc_...) Extra: - Since a lot of these flags are initialized by functional callback, we should not rely on go-lang `init()` as the order can change and be somewhat arbitrary - Refactored `init()` to `initializedFlags()` and called at runtime for vtclient Signed-off-by: Kyle Johnson <kylej@hubspot.com>
- Loading branch information
Showing
3 changed files
with
4 additions
and
3 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
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
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