Skip to content

Command line spec/override for closeOnExit #10019

Open

Description

The ability to specify the closeOnExit behavior would be even more useful if it could be specified on the command line. It would then not be limited to profiles and could even be used to override a profile's setting.

Taking a cue from CMD's /C and /K, you might use -c (close the tab/pane) and -k (keep the tab/pane)

Activity

  1. added
    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
    on May 2, 2021
  2. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on May 2, 2021
  3. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on May 2, 2021
  4. KalleOlaviNiemitalo commented on May 3, 2021

    @KalleOlaviNiemitalo

    Git uses -c name=value for overriding configuration files. Windows Terminal could perhaps support -c closeOnExit=graceful likewise. However, it might lead to ambiguity if some setting allows both the Boolean true and the string "true" in JSON. Also, it would be more tedious to type than a dedicated option (especially if the name is case-sensitive), although that would matter less in scripting.

  5. zadjii-msft commented on May 3, 2021

    @zadjii-msft
    Member

    Yea, sure we can toss this on the backlog.

    Sure starting to seem like we should have commandline switches for everything in a profile 😄

  6. added
    Issue-TaskIt's a feature request, but it doesn't really need a major design.
    and removed
    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
    on May 3, 2021
  7. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on May 3, 2021
  8. removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Commandlinewt.exe's commandline argumentsIssue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions