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

Configure CLI11 to stuff all unknown positionals into the cmdline #4388

Merged

Conversation

DHowett-MSFT
Copy link
Contributor

This commit fixes an issue where "wt -d C: wsl -d Alpine" would be
parsed as "wt -d C: -d Alpine wsl" and rejected as invalid due to the
repeated -d. It also fixes support for the option parsing terminator,
--, in all command lines.

Fixes #4277.

References

CLIUtils/CLI11#417

PR Checklist

Validation Steps

Tests, manual wailing.

This commit fixes an issue where "wt -d C: wsl -d Alpine" would be
parsed as "wt -d C: -d Alpine wsl" and rejected as invalid due to the
repeated -d. It also fixes support for the option parsing terminator,
--, in all command lines.

Fixes #4277.
@DHowett-MSFT DHowett-MSFT force-pushed the dev/duhowett/why_must_you_parse_--_differently_friendo branch from ae4f786 to bfa6ade Compare January 28, 2020 21:36
@DHowett-MSFT
Copy link
Contributor Author

The new test passes, but the split-pane tests are broken because we yeeted automatic in at the last second.

@zadjii-msft
Copy link
Member

zadjii-msft commented Jan 28, 2020

the split-pane tests are broken because we yeeted automatic in at the last second.

what? no, I would never not run the tests like that O_o

/s

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

I guess if I had to have a complaint, those comments in AppCommandlineArgs.cpp are pretty W I D E but that's a nit.

@DHowett-MSFT
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zadjii-msft
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@DHowett-MSFT
Copy link
Contributor Author

I learned from the CLI11 folks that we don't actually need the string+vector version

@DHowett-MSFT DHowett-MSFT merged commit 3487664 into master Jan 29, 2020
@DHowett-MSFT DHowett-MSFT deleted the dev/duhowett/why_must_you_parse_--_differently_friendo branch January 29, 2020 21:01
@ghost
Copy link

ghost commented Feb 13, 2020

🎉Windows Terminal Preview v0.9.433.0 has been released which incorporates this pull request.:tada:

Handy links:

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.

Error message when trying to provide a --startingDirectory to a WSL wt.exe command
4 participants