cleye 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Flags as Flags$1,
|
|
1
|
+
import { TypeFlagOptions, Flags as Flags$1, TypeFlag } from 'type-flag';
|
|
2
2
|
import { Options } from 'terminal-columns';
|
|
3
3
|
|
|
4
4
|
declare type CommandOptions<Parameters = string[]> = {
|
|
@@ -27,6 +27,10 @@ declare type CommandOptions<Parameters = string[]> = {
|
|
|
27
27
|
Options to configure the help documentation. Pass in `false` to disable handling `--help, -h`.
|
|
28
28
|
*/
|
|
29
29
|
help?: false | HelpOptions;
|
|
30
|
+
/**
|
|
31
|
+
* Which argv elements to ignore from parsing
|
|
32
|
+
*/
|
|
33
|
+
ignoreArgv?: TypeFlagOptions['ignore'];
|
|
30
34
|
};
|
|
31
35
|
declare function command<Options extends CommandOptions<[...Parameters]>, Parameters extends string[]>(options: Readonly<Options> & CommandOptions<[...Parameters]>, callback?: CallbackFunction<ParseArgv<Options, Parameters>>): Command<Options, ParseArgv<Options, Parameters, Options['name']>>;
|
|
32
36
|
declare type Command<Options extends CommandOptions = CommandOptions, ParsedType = any> = {
|