summaryrefslogtreecommitdiff
path: root/src/protocol/ArgParser.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-11 22:18:40 +0200
committerMax Kellermann <max@duempel.org>2015-08-11 23:02:34 +0200
commitb1480167be487d09ff46bb86ad02041fb28acff1 (patch)
treed819a825fb82c4258cc17d5f40793409f61600a1 /src/protocol/ArgParser.hxx
parente118e958f7f9b87054679ebf6102d6923abbba81 (diff)
command/Request: add parser methods
Wrapper for protocol/ArgParser.cxx.
Diffstat (limited to 'src/protocol/ArgParser.hxx')
-rw-r--r--src/protocol/ArgParser.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol/ArgParser.hxx b/src/protocol/ArgParser.hxx
index 87f15846a..b05d7224e 100644
--- a/src/protocol/ArgParser.hxx
+++ b/src/protocol/ArgParser.hxx
@@ -47,6 +47,10 @@ struct RangeArg {
start = 0;
end = std::numeric_limits<unsigned>::max();
}
+
+ static constexpr RangeArg All() {
+ return { 0, std::numeric_limits<unsigned>::max() };
+ }
};
bool