diff --git a/src/cascadia/LocalTests_TerminalApp/CommandlineTest.cpp b/src/cascadia/LocalTests_TerminalApp/CommandlineTest.cpp index ff69ebf51ec..876967e3283 100644 --- a/src/cascadia/LocalTests_TerminalApp/CommandlineTest.cpp +++ b/src/cascadia/LocalTests_TerminalApp/CommandlineTest.cpp @@ -210,6 +210,9 @@ namespace TerminalAppLocalTests appArgs._exitMessage.c_str())); VERIFY_ARE_EQUAL(0, result); VERIFY_ARE_NOT_EQUAL("", appArgs._exitMessage); + VERIFY_ARE_NOT_EQUAL(std::string::npos, appArgs._exitMessage.find("new-tab")); + VERIFY_ARE_NOT_EQUAL(std::string::npos, appArgs._exitMessage.find("wt new-tab --help")); + VERIFY_ARE_NOT_EQUAL(std::string::npos, appArgs._exitMessage.find("-d,--startingDirectory")); } } diff --git a/src/cascadia/TerminalApp/AppCommandlineArgs.cpp b/src/cascadia/TerminalApp/AppCommandlineArgs.cpp index 950984019b4..c988e3e5293 100644 --- a/src/cascadia/TerminalApp/AppCommandlineArgs.cpp +++ b/src/cascadia/TerminalApp/AppCommandlineArgs.cpp @@ -143,6 +143,7 @@ void AppCommandlineArgs::_buildParser() // E.g., for "wt.exe -M -d c:/", we will use -M for the launch mode, but once we will encounter -d // we will know that the prefix is over and try to handle the suffix as a new tab subcommand _app.prefix_command(); + _app.footer(RS_A(L"CmdHelpFooter")); // -v,--version: Displays version info auto versionCallback = [this](int64_t /*count*/) { diff --git a/src/cascadia/TerminalApp/Resources/en-US/Resources.resw b/src/cascadia/TerminalApp/Resources/en-US/Resources.resw index 3e0a7117110..09465a0a1d1 100644 --- a/src/cascadia/TerminalApp/Resources/en-US/Resources.resw +++ b/src/cascadia/TerminalApp/Resources/en-US/Resources.resw @@ -433,6 +433,10 @@ Specify the number of columns and rows for the terminal, in "c,r" format. + + If no command is specified, "new-tab" is assumed by default. Use "wt new-tab --help" to view new-tab options, including "-d,--startingDirectory". + {Locked="\"new-tab\"","\"wt new-tab --help\"","\"-d,--startingDirectory\""} + Press the button to open a new terminal tab with your default profile. Open the flyout to select which profile you want to open.