Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add special commandline parsing for Windows #294

Merged
merged 1 commit into from
Sep 20, 2018
Merged

Conversation

mpfz0r
Copy link
Contributor

@mpfz0r mpfz0r commented Sep 20, 2018

On Windows, commandline parameters are actually passed as one long
string. (They are then parsed the program itself).
Go however, only provides the exec.Command() API, which needs the
arguments split up. (And will later join them again ...)

Import the CommandLineToArgv() version of Go's os/exec_windows
and use it to split Windows commandlines.

Fixes #290

On Windows, commandline parameters are actually passed as one long
string. (They are then parsed the program itself).
Go however, only provides the exec.Command() API, which needs the
arguments split up. (And will later join them again ...)

Import the CommandLineToArgv() version of Go's os/exec_windows
and use it to split Windows commandlines.

Fixes #290
@mariussturm mariussturm merged commit 3576cf6 into master Sep 20, 2018
@mariussturm mariussturm deleted the issue-290 branch September 20, 2018 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants