aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-02-17 15:52:45 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-02-17 15:52:54 -0800
commitb890a9033cde8844566c0f4b8f986f8c44008ebb (patch)
treedd539f92ea35926208684d3f06cc5ed1d6693b13 /toolsrc/src
parent4e44b8533d1df94dd2405674086377d06b3690a7 (diff)
downloadvcpkg-b890a9033cde8844566c0f4b8f986f8c44008ebb.tar.gz
vcpkg-b890a9033cde8844566c0f4b8f986f8c44008ebb.zip
`contact`/`help`/`version`: Check for --options
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/commands_contact.cpp2
-rw-r--r--toolsrc/src/commands_help.cpp2
-rw-r--r--toolsrc/src/commands_version.cpp2
3 files changed, 6 insertions, 0 deletions
diff --git a/toolsrc/src/commands_contact.cpp b/toolsrc/src/commands_contact.cpp
index 2be468fb8..c5b8cab7e 100644
--- a/toolsrc/src/commands_contact.cpp
+++ b/toolsrc/src/commands_contact.cpp
@@ -8,6 +8,8 @@ namespace vcpkg::Commands::Contact
void perform_and_exit(const vcpkg_cmd_arguments& args)
{
args.check_exact_arg_count(0);
+ args.check_and_get_optional_command_arguments({});
+
System::println("Send an email to %s with any feedback.", Info::email());
exit(EXIT_SUCCESS);
}
diff --git a/toolsrc/src/commands_help.cpp b/toolsrc/src/commands_help.cpp
index 6068c22fb..49b5697c3 100644
--- a/toolsrc/src/commands_help.cpp
+++ b/toolsrc/src/commands_help.cpp
@@ -67,6 +67,8 @@ namespace vcpkg::Commands::Help
void perform_and_exit(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths)
{
args.check_max_arg_count(1);
+ args.check_and_get_optional_command_arguments({});
+
if (args.command_arguments.empty())
{
print_usage();
diff --git a/toolsrc/src/commands_version.cpp b/toolsrc/src/commands_version.cpp
index a521b2567..3dd90e630 100644
--- a/toolsrc/src/commands_version.cpp
+++ b/toolsrc/src/commands_version.cpp
@@ -8,6 +8,8 @@ namespace vcpkg::Commands::Version
void perform_and_exit(const vcpkg_cmd_arguments& args)
{
args.check_exact_arg_count(0);
+ args.check_and_get_optional_command_arguments({});
+
System::println("Vcpkg package management program version %s\n"
"\n"
"See LICENSE.txt for license information.", Info::version()