KonradIT / mmt

Media Management Tool - make importing videos/photos from GoPro and other action cameras/drones a little bit more bearable.
http://mmt.camera
Apache License 2.0
109 stars 12 forks source link

make GetFlagString() process the default string #133

Closed KonradIT closed 2 months ago

KonradIT commented 2 months ago

Original PR here: https://github.com/KonradIT/mmt/pull/127

make GetFlagString() process the default value, not Cobra

since the dateFormat / --date has a default set to dd-mm-yyy, the GetFlagString() function does not ever attempt reading the value from the config file.

Now every GetFlagString() invocation explicitly lists the default values, like GetFlagInt() does, hence one can set the date format in the config file.

Type:

Camera:

Component:

Checklist before approval: