CLIOptions
Options for the cli({...}) factory form.
This form is useful when the displayed CLI name should be inferred from the current runtime invocation instead of always being hard-coded.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/cli/index.ts - Source link:
packages/dreamcli/src/core/cli/index.ts:904
Signatures
ts
interface CLIOptions {}Members
Properties
inherit
Replace name with the invoked program basename during .run().
Examples:
node ./bin/mycli.ts→mycli.ts/usr/local/bin/mycli→mycli
ts
inherit?: boolean;name
Explicit fallback CLI name.
Used by .execute(), and by .run() when runtime name inheritance is disabled or the invocation name cannot be inferred.
ts
name?: string;