lessmsi icon indicating copy to clipboard operation
lessmsi copied to clipboard

Return non-zero exit code on error

Open homes32 opened this issue 1 year ago • 1 comments

I would love for the cli version to return a non-zero exit code when an error is encountered. Currently if I am extracting a file via a script there is no way my script can tell if the operation failed and make a decision on what to do next.

Example:

0 - Success 1 - MSI file not found 2 - Extraction failed 3 - File not found in MSI ...

homes32 avatar Sep 19 '22 02:09 homes32

Great suggestion. I'd welcome a PR and be happy to support you if you're interested in adding it. I'll put this high on the list though as I can see how it'd be super useful. Thank you for taking the time to leave the suggestion!

activescott avatar Sep 20 '22 17:09 activescott