Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/cascadia/LocalTests_TerminalApp/CommandlineTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
}

Expand Down
1 change: 1 addition & 0 deletions src/cascadia/TerminalApp/AppCommandlineArgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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*/) {
Expand Down
4 changes: 4 additions & 0 deletions src/cascadia/TerminalApp/Resources/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@
<data name="CmdSizeDesc" xml:space="preserve">
<value>Specify the number of columns and rows for the terminal, in "c,r" format.</value>
</data>
<data name="CmdHelpFooter" xml:space="preserve">
<value>If no command is specified, "new-tab" is assumed by default. Use "wt new-tab --help" to view new-tab options, including "-d,--startingDirectory".</value>
<comment>{Locked="\"new-tab\"","\"wt new-tab --help\"","\"-d,--startingDirectory\""}</comment>
</data>
<data name="NewTabSplitButton.[using:Windows.UI.Xaml.Automation]AutomationProperties.HelpText" xml:space="preserve">
<value>Press the button to open a new terminal tab with your default profile. Open the flyout to select which profile you want to open.</value>
</data>
Expand Down
Loading