diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-28 12:38:13 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-28 12:44:23 -0700 |
| commit | 8a1e0b144c26dd7e6e29a9b230936169ca595fed (patch) | |
| tree | 5ffbe2bd71424696450b01fa7b2276718b15f8c2 /toolsrc/src/commands_remove.cpp | |
| parent | 5d3f6a79b441b6a614debd63c9990170eb772625 (diff) | |
| download | vcpkg-8a1e0b144c26dd7e6e29a9b230936169ca595fed.tar.gz vcpkg-8a1e0b144c26dd7e6e29a9b230936169ca595fed.zip | |
[clang-format] Increase PenaltyReturnTypeOnItsOwnLine
Diffstat (limited to 'toolsrc/src/commands_remove.cpp')
| -rw-r--r-- | toolsrc/src/commands_remove.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/toolsrc/src/commands_remove.cpp b/toolsrc/src/commands_remove.cpp index b2d9f602a..d52c9347b 100644 --- a/toolsrc/src/commands_remove.cpp +++ b/toolsrc/src/commands_remove.cpp @@ -121,7 +121,26 @@ namespace vcpkg::Commands::Remove void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, const Triplet& default_triplet) { - static const std::string OPTION_PURGE = "--purge"; + enum SwitchType + { + SINGLE, + SINGLE_WITH_NO, + VALUE, + }; + + struct Option + { + CStringView name; + SwitchType type; + }; + + static constexpr Option options_table[] = { + Option{ "--purge", SINGLE_WITH_NO }, Option{ "--recurse", SINGLE_WITH_NO }, + Option{ "--dry-run", SINGLE_WITH_NO }, Option{ "--outdated", SINGLE }, + Option{ "--logfile", VALUE }, + }; + + static constexpr CStringView OPTION_PURGE = "--purge"; static const std::string OPTION_NO_PURGE = "--no-purge"; static const std::string OPTION_RECURSE = "--recurse"; static const std::string OPTION_DRY_RUN = "--dry-run"; |
