arcanis / clipanion

Type-safe CLI library / framework with no runtime dependencies
https://mael.dev/clipanion/
1.12k stars 65 forks source link

Fix: process.exitCode is being set to an object instead of a number #164

Closed eLyiN closed 2 months ago

eLyiN commented 4 months ago

image

fixing 'ERR_INVALID_ARG_TYPE'

arcanis commented 2 months ago

Thanks, but that seems an issue with this specific CLI - execute is expected to only return a number (or void): https://github.com/arcanis/clipanion/blob/master/sources/advanced/Command.ts#L128