garzj / google-photos-migrate

A tool to fix EXIF data and recover filenames from a Google Photos takeout, preserving albums within the directory structure.
https://npmjs.com/package/google-photos-migrate
MIT License
104 stars 11 forks source link

[Bug] `-h` and `--help` exits with an error after the message #14

Closed mtalexan closed 9 months ago

mtalexan commented 9 months ago

If the -h or --help flag is used on the bases command, or any of the subcommands, it prints the help message correctly but then exits with an error. The standard is to exit with success when help was specifically requested.

A niche alternative is to print an error message about extraneous options/arguments/flags other than the --help and exit with an error. But that's almost never used.

lukehmcc commented 9 months ago

This is a bug with cmd-ts https://github.com/Schniz/cmd-ts/pull/213