chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Using NoOptDefaultVal disallows using spaces to separate values for option flags

Open JordanKnott opened this issue 6 years ago • 0 comments

The -m, -w, -d in the report command has a NoOptDefaultVal value (provided by the Cobra & the pflags library). Because of an issue within pflags itself, the following works

chrono report -w=2019-12-01

However this does not

chrono report -w 2019-12-01

JordanKnott avatar Dec 25 '19 18:12 JordanKnott