mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-22 15:03:02 +08:00
cc8851144a
Additionally, functions related to a command can now live in the same namespace
17 lines
452 B
C++
17 lines
452 B
C++
#include "vcpkg_Commands.h"
|
|
#include "vcpkg_System.h"
|
|
#include "vcpkg_info.h"
|
|
|
|
namespace vcpkg::Commands::Version
|
|
{
|
|
void perform_and_exit(const vcpkg_cmd_arguments& args)
|
|
{
|
|
args.check_exact_arg_count(0);
|
|
System::println("Vcpkg package management program version %s\n"
|
|
"\n"
|
|
"See LICENSE.txt for license information.", Info::version()
|
|
);
|
|
exit(EXIT_SUCCESS);
|
|
}
|
|
}
|