Skip to content

Commit

Permalink
Add alternate name to Usage String (#2268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly authored Jul 5, 2022
1 parent 785668d commit b642938
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AppInstallerCLICore/Argument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ namespace AppInstaller::CLI
{
strstr << APPINSTALLER_CLI_ARGUMENT_IDENTIFIER_CHAR << m_alias << ',';
}
if (m_alternateName != Argument::NoAlternateName)
{
strstr << APPINSTALLER_CLI_ARGUMENT_IDENTIFIER_CHAR << APPINSTALLER_CLI_ARGUMENT_IDENTIFIER_CHAR << m_alternateName << ',';
}
strstr << APPINSTALLER_CLI_ARGUMENT_IDENTIFIER_CHAR << APPINSTALLER_CLI_ARGUMENT_IDENTIFIER_CHAR << m_name;
return strstr.str();
}
Expand Down

0 comments on commit b642938

Please sign in to comment.