We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9edcd68 commit 79878a6Copy full SHA for 79878a6
cmd/gh/main.go
@@ -64,9 +64,11 @@ func main() {
64
}
65
66
67
- // Enable running gh from explorer.exe. Without this, the user is told to stop and run from a
+ // Enable running gh from Windows File Explorer's address bar. Without this, the user is told to stop and run from a
68
// terminal. With this, a user can clone a repo (or take other actions) directly from explorer.
69
- cobra.MousetrapHelpText = ""
+ if len(os.Args) > 1 && os.Args[1] != "" {
70
+ cobra.MousetrapHelpText = ""
71
+ }
72
73
rootCmd := root.NewCmdRoot(cmdFactory, buildVersion, buildDate)
74
0 commit comments