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