Skip to content

feature request: exit status codes #229

@brnco

Description

@brnco

I'd like to be able to evaluate the execution of the MediaConch CLI through the use of exit status codes. Using return codes would simplify Bash implementations of the MediaConch CLI by allowing the execution of MediaConch to be part of a conditional statement directly, e.g. if mediaconch -p policy.xml file.mkv; then...

Currently, MediaConch returns the same code, 0, for pass, fail, and error. To evaluate the pass/ fail/ error status of the execution, we have to parse the output text.

I think the following exit codes would suit my needs just fine:
0 = file passes validation
1 = file fails validation
2 = error in execution of MediaConch

You all are the best, thank you!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions