Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cristiand391
Copy link
Contributor

Ref #2076 (comment)

The first argument is the path to the program, so if os.Args[1] doesn't exist we can assume the user double-clicked gh.exe.

Demo:

gh-windows

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic. Thank you!

@mislav mislav merged commit 91df27f into cli:trunk Nov 11, 2020
@cristiand391 cristiand391 deleted the fix-mousetrap-windows branch November 11, 2020 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants