aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2020-07-15 17:29:18 -0700
committerGitHub <noreply@github.com>2020-07-15 17:29:18 -0700
commit6bf5adff937abd9bf09fb1c3fda40b5f566f8acd (patch)
treedad4795f852b4af3252e8f51f90ba4e5b0b3d835 /toolsrc/include
parent5a4e2c0484878a28f27ffd66caf39cc3507ca205 (diff)
downloadvcpkg-6bf5adff937abd9bf09fb1c3fda40b5f566f8acd.tar.gz
vcpkg-6bf5adff937abd9bf09fb1c3fda40b5f566f8acd.zip
[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
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/vcpkgcmdarguments.h3
1 files changed, 2 insertions, 1 deletions
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<std::string, Optional<std::vector<std::string>>> optional_command_arguments;
+ std::unordered_set<std::string> command_switches;
+ std::unordered_map<std::string, std::vector<std::string>> command_options;
};
}