From 6bf5adff937abd9bf09fb1c3fda40b5f566f8acd Mon Sep 17 00:00:00 2001 From: nicole mazzuca Date: Wed, 15 Jul 2020 17:29:18 -0700 Subject: [vcpkg] Clean up command switch code (#12351) * [vcpkg] Clean up command switch code Make it more similar to the non-command switch code * format * fix the tests * reformat * format * wip * support x- for command options * fix autocomplete * format --- toolsrc/include/vcpkg/vcpkgcmdarguments.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg/vcpkgcmdarguments.h b/toolsrc/include/vcpkg/vcpkgcmdarguments.h index 8cf0680b9..ddc407a35 100644 --- a/toolsrc/include/vcpkg/vcpkgcmdarguments.h +++ b/toolsrc/include/vcpkg/vcpkgcmdarguments.h @@ -182,6 +182,7 @@ namespace vcpkg void track_feature_flag_metrics() const; private: - std::unordered_map>> optional_command_arguments; + std::unordered_set command_switches; + std::unordered_map> command_options; }; } -- cgit v1.2.3