aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/args.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-12-03 22:45:44 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-12-03 22:45:44 +0100
commitaf373c2ece2c14ac652313a6f370dc344c85f86e (patch)
treeeb6318cedfc19d16d6a3bc2f3a85fcfaebe3935c /src/libutil/args.hh
parent0c15ae5d4b3366a14bca885e02599a941a334920 (diff)
Add deprecated aliases for renamed commands
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r--src/libutil/args.hh5
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;