aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_help.cpp
diff options
context:
space:
mode:
authorLiGuilin <liguilin0522@qq.com>2016-10-08 08:34:12 +0800
committerLiGuilin <liguilin0522@qq.com>2016-10-08 08:34:12 +0800
commitc91da2b0c4c3d9218c0b4d1712d744bb35245a61 (patch)
treee1ae0664a4f21f3948bde8c8f9f9e55dea0cb11f /toolsrc/src/commands_help.cpp
parent280d88b34033ab728e02f725d8d8ff5f9250c6de (diff)
parenta0f621c0fca2c3de8bd5249f023979b800c543cf (diff)
downloadvcpkg-c91da2b0c4c3d9218c0b4d1712d744bb35245a61.tar.gz
vcpkg-c91da2b0c4c3d9218c0b4d1712d744bb35245a61.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'toolsrc/src/commands_help.cpp')
-rw-r--r--toolsrc/src/commands_help.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/toolsrc/src/commands_help.cpp b/toolsrc/src/commands_help.cpp
index 4e1ae9c49..194e809b1 100644
--- a/toolsrc/src/commands_help.cpp
+++ b/toolsrc/src/commands_help.cpp
@@ -6,18 +6,17 @@ namespace vcpkg
{
void version_command(const vcpkg_cmd_arguments& args)
{
- args.check_max_args(0);
+ args.check_exact_arg_count(0);
System::println("Vcpkg package management program version %s\n"
"\n"
- "Vcpkg is provided \"as-is\" without warranty of any kind, express or implied.\n"
- "All rights reserved.", vcpkg::version()
+ "See LICENSE.txt for license information.", vcpkg::version()
);
exit(EXIT_SUCCESS);
}
void help_command(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths)
{
- args.check_max_args(1);
+ args.check_max_arg_count(1);
if (args.command_arguments.empty())
{
print_usage();
@@ -37,8 +36,9 @@ namespace vcpkg
exit(EXIT_SUCCESS);
}
- void contact_command(const vcpkg_cmd_arguments& /*args*/)
+ void contact_command(const vcpkg_cmd_arguments& args)
{
+ args.check_exact_arg_count(0);
System::println("Send an email to vcpkg@microsoft.com with any feedback.");
exit(EXIT_SUCCESS);
}