mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
contact
/help
/version
: Check for --options
This commit is contained in:
parent
4e44b8533d
commit
b890a9033c
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user