Skip to content
Snippets Groups Projects
Commit d5e85769 authored by Jono Wenger's avatar Jono Wenger
Browse files

Allow exe to be launched directly from explorer on windows

parent 01671f4f
No related branches found
No related tags found
No related merge requests found
...@@ -194,6 +194,10 @@ func init() { ...@@ -194,6 +194,10 @@ func init() {
"Starts the UI with a mock cMix client for testing purposes.") "Starts the UI with a mock cMix client for testing purposes.")
bindPFlag(rootCmd.Flags(), "testUI", rootCmd.Use) bindPFlag(rootCmd.Flags(), "testUI", rootCmd.Use)
hidePFlag(rootCmd.Flags(), "testUI", rootCmd.Use) hidePFlag(rootCmd.Flags(), "testUI", rootCmd.Use)
// Disabling MousetrapHelpText allows the exe to be executed directly from
// explorer by clicking on it instead of needing to launch it from cmd
cobra.MousetrapHelpText = ""
} }
// bindPFlag binds the key to a pflag.Flag. Panics on error. // bindPFlag binds the key to a pflag.Flag. Panics on error.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment