vilicvane / clime

⌨ The command-line interface framework for TypeScript.
252 stars 10 forks source link

default helpinfo why throw and error #37

Closed tienne closed 6 years ago

tienne commented 6 years ago

i use default command here

export const description = `
==============================
cli: v${version}
maintainer: ${author.name}
==============================
`;

export const subcommands: SubcommandDefinition[] = [
  { name: 'worker' }
];

command run but error code 1 and print helpinfo i want helpInfo return and not throw how can?

vilicvane commented 6 years ago

@tienne Hi, it is by-design. To exit with code 0 you may specify -h, --help or -? explicitly.

tienne commented 6 years ago

aha! thanks! this issue close