Anyway, upping to `v3.0.0` make it more obvious that there are some details (when installing) that need to be paid attention to. For example, possibly rebuilding `/usr/local/venv` with a version of `python3>=3.7`, and reinstalling `lsseq`, `renumseq`, etc. again.
Now `lsseq` is able to trap `stderr` output from running `ls`, and supressing the message if `--silent` was invoked on the command line.
Also, we grab the error codes from the call to `ls` bringing us to the next point...
Better ERROR codes and warning messages overall.
Better error handling is now provided and `lsseq` returns different error codes, as such:
EXIT_NO_ERROR = 0 Clean exit.
EXIT_LS_ERROR = 1 A call to 'ls' returned an error code.
EXIT_ARGPARSE_ERROR = 2 A bad option was passed to lsseq. Exit lsseq.
EXIT_LSSEQ_SOFTLINK_WARNING = 4 warning - broken softlink found
EXIT_LSSEQ_PADDING_WARNING = 8 warning - two images with same name, same frame-num, but diff padding
Even better, those error codes above are combined bitwise to return as much information as possible.
For example, an error code of `12` means we got a warning of a broken softlink AND we found more than one file in a sequence, with the same frame-number, but different frame-number-padding. These codes are returned regardless of whether or not `--silent` or `--quiet `were invoked.
Also, we now have improved warning messages in both information and clarity.