This commit adds a new parser for the internal time duration flag value
(TimeDurationValue). Previously this used the parser from the time
package from the standard library but this was limited to parsing units
of time up to hours.
The new parser allows users to specify duration in days, hours, minutes,
seconds and a combination of the above. It is quite flexible in the way
users format their string input.
Additonal changes:
- Added unit tests for the command-line parsing of the
TimeDurationValue type.
- Updated the unit tests for the BoolPtrValue type.
- Updated documentation.
PR: #55
- Fixed the BoolPtrValue type in the internal flag package by adding the
IsBoolFlag() bool method to indicate to the command-line parser that
the flag is a boolean flag.
- Added unit tests for the BoolPtrValue type.
PR: #56