[PR #4388] [MERGED] Configure CLI11 to stuff all unknown positionals into the cmdline #25736

Open
opened 2026-01-31 09:11:28 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4388
Author: @DHowett-MSFT
Created: 1/28/2020
Status: Merged
Merged: 1/29/2020
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/why_must_you_parse_--_differently_friendo


📝 Commits (3)

  • bfa6ade Configure CLI11 to stuff all unknown positionals into the cmdline
  • df163f5 reformat the comment
  • 96e998a we don't need string and vector

📊 Changes

4 files changed (+87 additions, -102 deletions)

View changed files

📝 doc/user-docs/UsingCommandlineArguments.md (+0 -25)
📝 src/cascadia/LocalTests_TerminalApp/CommandlineTest.cpp (+63 -15)
📝 src/cascadia/TerminalApp/AppCommandlineArgs.cpp (+22 -61)
📝 src/cascadia/TerminalApp/AppCommandlineArgs.h (+2 -1)

📄 Description

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

https://github.com/CLIUtils/CLI11/issues/417

PR Checklist

Validation Steps

Tests, manual wailing.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/4388 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 1/28/2020 **Status:** ✅ Merged **Merged:** 1/29/2020 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/why_must_you_parse_--_differently_friendo` --- ### 📝 Commits (3) - [`bfa6ade`](https://github.com/microsoft/terminal/commit/bfa6adeb166a5efd93a7738f1f2424e56c53b6ab) Configure CLI11 to stuff all unknown positionals into the cmdline - [`df163f5`](https://github.com/microsoft/terminal/commit/df163f5bb1b02cbbb9b898709e870841c1cc6798) reformat the comment - [`96e998a`](https://github.com/microsoft/terminal/commit/96e998a76814249d931f15bb8b9e9bb4162335e8) we don't need string _and_ vector ### 📊 Changes **4 files changed** (+87 additions, -102 deletions) <details> <summary>View changed files</summary> 📝 `doc/user-docs/UsingCommandlineArguments.md` (+0 -25) 📝 `src/cascadia/LocalTests_TerminalApp/CommandlineTest.cpp` (+63 -15) 📝 `src/cascadia/TerminalApp/AppCommandlineArgs.cpp` (+22 -61) 📝 `src/cascadia/TerminalApp/AppCommandlineArgs.h` (+2 -1) </details> ### 📄 Description 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 https://github.com/CLIUtils/CLI11/issues/417 ## PR Checklist * [x] Closes #4277 * [x] cla * [x] Tests added/passed * [x] docs fixed * [x] The core one cometh ## Validation Steps Tests, manual wailing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:11:28 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25736