It is more idiomatic for CLI utilities to use identifiers without spaces or special characters.
markers-extractor-cli --label id --label role file.fcpxml ./output
Using IDs for these labels will help if additional export formats are added (.tsv file, Excel spreadsheet, or any other potential format) which may use different field names for exporting metadata. This way the IDs remain stable regardless of potential format used.
Additionally, --help-labels CLI flag can be removed as it's not really necessary. All the label IDs can be listed inline with the main CLI help block.
OPTIONS:
< ... >
--label <id,name,type,checked,status,notes,position,clipName,clipDuration,role,eventName,projectName,libraryName,iconImage,imageFileName>
Label to overlay on thumb images. This argument can
be supplied more than once to apply multiple labels.
< ... >
Currently the
--label
CLI argument requires using the actual string of the CSV field names which is a bit obtuse.It is more idiomatic for CLI utilities to use identifiers without spaces or special characters.
Using IDs for these labels will help if additional export formats are added (.tsv file, Excel spreadsheet, or any other potential format) which may use different field names for exporting metadata. This way the IDs remain stable regardless of potential format used.
Additionally,
--help-labels
CLI flag can be removed as it's not really necessary. All the label IDs can be listed inline with the main CLI help block.