diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-12-03 22:45:44 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-12-03 22:45:44 +0100 |
commit | af373c2ece2c14ac652313a6f370dc344c85f86e (patch) | |
tree | eb6318cedfc19d16d6a3bc2f3a85fcfaebe3935c /src/libutil/args.hh | |
parent | 0c15ae5d4b3366a14bca885e02599a941a334920 (diff) |
Add deprecated aliases for renamed commands
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r-- | src/libutil/args.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh index 26f1bc11b..8069fd70f 100644 --- a/src/libutil/args.hh +++ b/src/libutil/args.hh @@ -115,6 +115,9 @@ protected: virtual bool processArgs(const Strings & args, bool finish); + virtual Strings::iterator rewriteArgs(Strings & args, Strings::iterator pos) + { return pos; } + std::set<std::string> hiddenCategories; public: @@ -257,8 +260,6 @@ public: std::map<Command::Category, std::string> categories; - std::map<std::string, std::string> deprecatedAliases; - // Selected command, if any. std::optional<std::pair<std::string, ref<Command>>> command; |