1 #ifndef ROSE_CommandLine_DurationParser_H
2 #define ROSE_CommandLine_DurationParser_H
4 #include <Rose/CommandLine/SuffixMultiplierParser.h>
7 namespace CommandLine {
Holds a value or nothing.
Command-line parser for durations.
static Ptr instance()
Default allocating constructor.
DurationParser::Ptr durationParser(uint64_t &storage)
Constructs a DurationParser.
Parse values followed by unit names.
static std::string docString()
Runtime documentation.
Main namespace for the ROSE library.
const ValueSaver::Ptr valueSaver() const
Property: functor responsible for saving a parsed value in user storage.
std::string toString(const Sawyer::Optional< uint64_t > &seconds)
Convert seconds to a parsable string.