massarg 2.0.0-pre.10 → 2.0.0-pre.11

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/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # massarg
2
2
 
3
- Massarg is a beautiful, flexible, powerful, and simple-to-use command/argument parser for JS
3
+ Massarg is a modern, flexible, powerful, and simple-to-use command/argument parser for JS
4
4
  applications, allowing you to create complex but easy applications that consume command-line
5
5
  arguments and commands.
6
6
 
7
7
  It allows you to both parse argument options and flags, as well as hierarchal subcommands, both of
8
- which can be parsed into an automatic help command or flag that displays all the information easily,
9
- with customizable styles, and content.
8
+ which can be parsed into an **automatic help command or flag** that displays all the information
9
+ easily, with customizable styles, and content.
10
10
 
11
11
  You should only focus on actually writing the functionality of your CLI, and not waste it on writing
12
12
  a way to parse the chain of commands, flags or options.
@@ -59,21 +59,32 @@ Call the default export function `massarg`, or create a new instance manually us
59
59
  and then you can start chaining commands. Use `.parse()` to do the final parsing and run the
60
60
  commands and options.
61
61
 
62
- Here is an example with some commonly used examples to get you started. Keep reading for a complete
63
- documentation of every option.
62
+ Each function and option is documented. See
63
+ [the full documentation](https://chenasraf.github.io/massarg) for details.
64
+
65
+ JSDoc comments are also provided.
66
+
67
+ Here is an example with some commonly used examples to get you started.
64
68
 
65
69
  ```ts
66
70
  const parser = massarg({
67
71
  name: 'my-cli',
68
72
  description: "Does really amazing stuff, you wouldn't believe!",
69
73
  }) // or: new Massarg()
74
+ // The main command - runs when no commands are specified. If not provided, an error is thrown for
75
+ // required arguments.
70
76
  .main((options) => console.log('main command', options))
77
+ // A subcommand example
71
78
  .command({
72
79
  name: 'foo',
73
80
  description: 'a sub command',
74
81
  aliases: ['f'],
75
- run: (options) => console.log('foo command'),
82
+ optionPrefix: '--',
83
+ aliasPrefix: '-',
84
+ run: (options) => console.log('foo command'), // The function to run
76
85
  })
86
+ // A subcommand example, which contains its own set of options or sub commands. This is infinitely
87
+ // nestible.
77
88
  .command(
78
89
  massarg({
79
90
  name: 'bar',
@@ -87,21 +98,28 @@ const parser = massarg({
87
98
  parse: (filename) => path.resolve(process.cwd(), filename),
88
99
  }),
89
100
  )
101
+ // A CLI option - argument with a value
90
102
  .option({
91
103
  name: 'my-string',
92
104
  description: 'A string argument',
93
105
  aliases: ['s'],
94
106
  })
107
+ // A CLI flg - boolean argument with no value
95
108
  .flag({
96
109
  name: 'flag',
97
110
  description: 'a flag that will be related to any command (main or sub)',
98
111
  aliases: ['f'],
112
+ negatble: true,
113
+ negateName: 'no-flag', // Override the default negation name
114
+ negateAliases: ['F'], // Override the default negation aliases
99
115
  })
116
+ // Usage examples for your CLI. Use this to describe various common usages or quirks.
100
117
  .example({
101
118
  description: 'Run the sub command',
102
119
  input: 'my-bin --flag sub',
103
120
  output: 'Sub command: flag is true',
104
121
  })
122
+ // Configuration of the automated help section
105
123
  .help({
106
124
  bindCommand: true,
107
125
  footerText: `Copyright © ${new Date().getFullYear()} Me, Myself and I`,
@@ -112,193 +130,27 @@ const parser = massarg({
112
130
  })
113
131
  ```
114
132
 
115
- ## Main command
116
-
117
- The main command is the one that runs when you supply no other commands.
118
-
119
- If no command is specified, and no main command is present, the help usage is automatically printed.
120
-
121
- ### Example
122
-
123
- #### JS/TS
124
-
125
- ```ts
126
- parser.main((options) => {
127
- console.log('Parsed options:', options)
128
- // do stuff
129
- })
130
- ```
131
-
132
- #### Shell
133
-
134
- ```shell
135
- $ ./mybin
136
- # Main command runs without options
137
-
138
- $ ./mybin --my-string "Some string"
139
- # Main command runs with options { myString: "Some string" }
140
-
141
- $ ./mybin foo
142
- # Foo sub command run with options {}
143
- ```
144
-
145
- ## Commands
146
-
147
- Commands are activated when their keyword is included in the args. The first command that matches
148
- will be executed, skipping the rest. Options before will be parsed on the main parser, while
149
- anything after the command will be parsed for that subcommand only.
150
-
151
- ### Options
152
-
153
- | Name | Type | Required | Example | Description |
154
- | ------------- | ----------------------------------- | -------- | ------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
155
- | `name` | `string` | ✅ | `"my-command"` | The name of the command, which will be used in the CLI to trigger it |
156
- | `aliases` | `string[]` | | `["m", "mc"]` | Alternate names for the command, available for use in addition to `name` |
157
- | `description` | `string` | | `"Description of the command"` | Description for the command, only displayed with `--help` or `printHelp()` |
158
- | `run` | `function(options, parser) => void` | ✅ | `(options) => console.log("my-command", options)` | Main function that runs this command. The supplied argument is the options passed via the CLI and parsed by massarg. |
159
-
160
- ### Example
161
-
162
- #### JS/TS
163
-
164
- ```ts
165
- parser.command({
166
- name: 'do-something',
167
- description: 'This command does something',
168
- aliases: ['do', 'd'],
169
- run: (options) => {
170
- console.log('Parsed options:', options)
171
- // do stuff
172
- },
173
- })
174
- ```
175
-
176
- #### Shell
177
-
178
- ```shell
179
- $ ./mybin my-command
180
- # Specified "my-command" runs without options
181
-
182
- $ ./mybin my-command --my-string "Some string"
183
- # Specified "my-command" runs with option { myString: "Some string" }
184
- ```
185
-
186
- ## Options
187
-
188
- Options are variables you can accept via CLI and parse to use in your commands, e.g. `--my-bool`,
189
- `--my-string string`, `--my-number 1`.
190
-
191
- Aliases use the shorthand syntax, as such: `-s string`, `-n 1`.
192
-
193
- ### Options
194
-
195
- | Name | Type | Required | Default | Example | Description |
196
- | ------------- | --------------------------------- | -------- | ------------------ | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
197
- | `name` | `string` | ✅ | | `"my-number"` | The name of the option, which will be used in the CLI to apply it |
198
- | `aliases` | `string[]` | | | `["n"]` | Alternate names for the option, available for use in addition to `name` |
199
- | `description` | `string` | | | `"Description of the command"` | Description for the command, only displayed with `--help` or `printHelp()` |
200
- | `parse` | `function(value, options) => any` | | `(s) => String(s)` | `(value, options) => parseInt(value)` | Function that parses this option. The supplied arguments are the string value from the arg, and other options passed via the CLI and parsed by massarg before this one. Not all options will be available. |
201
- | `isDefault` | `boolean` | | `false` | | When `true`, any args placed without name will be applied to this option. When more than one arg is supplied this way, only the last given will be used (unless the option is an array type). |
202
- | `array` | `boolean` | | `false` | | When set to true, you will be able to take multiple values when using the same option more than once. They will all be parsed properly and put into an array. |
203
- | `required` | `boolean` | | `false` | | When an option is required, parsing will throw a `RequiredError` if it was not given a proper value. If it is attached to a specific (or several) commands, it will only throw if the relevant command was used. |
204
-
205
- ### Example
206
-
207
- #### JS/TS
208
-
209
- ```ts
210
- parser.option({
211
- name: 'number',
212
- aliases: ['n'],
213
- description:
214
- 'This is a number arg, if you include this option, you must supply it with a numeric value.',
215
- defaultValue: 0,
216
- parse: (v) => parseInt(v),
217
- })
218
- ```
219
-
220
- #### Shell
221
-
222
- ```shell
223
- $ ./mybin my-command
224
- # Specified "my-command" runs without options
225
-
226
- $ ./mybin my-command --my-string "Some string" --my-number 1 --my-bool
227
- # Specified "my-command" runs with option { myString: "Some string", myNumber: 1, myBool: true }
228
- ```
133
+ ## Documentation
229
134
 
230
- ## Example Lines
135
+ The full documentation can be found here:
136
+ [Massarg Documentation](https://chenasraf.github.io/massarg)
231
137
 
232
- Example lines are annotated samples you can add to your help text. They will be added at the end,
233
- above the footer.
138
+ - [Massarg](https://chenasraf.github.io/massarg/docs/api/classes/massarg.Massarg)
139
+ - [MassargOption](https://chenasraf.github.io/massarg/docs/api/classes/massarg.MassargOption)
140
+ - [MassargFlag](https://chenasraf.github.io/massarg/docs/api/classes/massarg.MassargFlag)
141
+ - [MassargExample](https://chenasraf.github.io/massarg/docs/api/classes/massarg.MassargExample)
234
142
 
235
- The examples consist of inputs, outputs, and optional descriptions. The descriptions are displayed
236
- atop as titles, if specified.
143
+ ## Contributing
237
144
 
238
- ### Options
145
+ I am developing this package on my free time, so any support, whether code, issues, or just stars is
146
+ very helpful to sustaining its life. If you are feeling incredibly generous and would like to donate
147
+ just a small amount to help sustain this project, I would be very very thankful!
239
148
 
240
- | Name | Type | Required | Default | Example | Description |
241
- | ------------- | -------- | -------- | ------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
242
- | `input` | `string` | ✅ | | `"my-cmd --number 10"` | The input line, an example of user input that will be displayed as "shell" commands. The prefix is customizable through the `help()` options. |
243
- | `output` | `string` | ✅ | | `"you entered my-cmd with the number 10, which is larger than 5"` | The output line, an example of the command's output that will be displayed as "shell" output. The prefix is customizable through the `help()` options. |
244
- | `description` | `string` | | | `"Run the my-cmd command with a number parameter"` | An explanation of the input/output that will be display as a title above the input if specified. |
245
-
246
- ### Example
247
-
248
- #### JS/TS
249
-
250
- ```ts
251
- parser.example({
252
- input: 'my-cmd --number 10',
253
- output: 'you entered my-cmd with the number 10, which is larger than 5',
254
- description: 'Run the my-cmd command with a number parameter',
255
- })
256
- ```
257
-
258
- ## Help/Usage Command
259
-
260
- You can modify some of the styles and behavior of the help text. None of the options are required,
261
- you may override their defaults to modify the behavior.
262
-
263
- ### Options
264
-
265
- | Name | Type | Default | Description |
266
- | ---------------------- | -------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------- |
267
- | `binName` | `string` | running script name | The name of the binary, to be used when outputting usage information. |
268
- | `printWidth` | `number` | `80` | The amount of characters to allow per line. Use `0` to disable wrapping. |
269
- | `normalColors` | `string \| string[]` | `"dim"` | Colors to use on normal text (descriptions, usage example, etc.) |
270
- | `highlightColors` | `string \| string[]` | `"yellow"` | Colors to use on highlighted text (command names, option names, binary name, etc) |
271
- | `titleColors` | `string \| string[]` | `["bold", "white"]` | Colors to use on title text ("Options", "Usage", etc) |
272
- | `subtitleColors` | `string \| string[]` | `["bold", "dim"]` | Colors to use on subtitle text (e.g. command titles for non-gloal options) |
273
- | `bodyColors` | `string \| string[]` | `"white"` | Colors to use on special body text (header, footer, and default value) |
274
- | `header` | `string` | | Additional content to display below the usage line, and above the rest. |
275
- | `footer` | `string` | | Additional content to display below the commands and options, at the very bottom. |
276
- | `commandNameSeparator` | `string` | `" \| "` | Separator for command name & its aliases. |
277
- | `optionNameSeparator` | `string` | `"\|"` | Separator for option name & its aliases. |
278
- | `useGlobalColumns` | `boolean` | `true` | Decides whether to align the columns of the option/command names and their descriptions globally or per table |
279
- | `usageExample` | `string` | `"[command] [option]"` | Default text to use as suffix for the `binName`, which will be used in the "Usage" line of the help text |
280
- | `useColors` | `boolean` | `true` | When false, no colors will be output in the help. Good for non-supporting systems. |
281
- | `includeDefaults` | `boolean` | `true` | When false, the default values will not be specified after the description of each option. |
282
-
283
- ### Example
284
-
285
- #### JS/TS
286
-
287
- ```ts
288
- parser.help({
289
- printWidth: 80,
290
- binName: 'my-app',
291
- normalColors: 'dim',
292
- highlightColors: 'yellow',
293
- titleColors: 'white',
294
- subtitleColors: ['bold', 'dim'],
295
- header: 'Header text',
296
- footer: 'Footer text',
297
- commandNameSeparator: ' | ',
298
- optionNameSeparator: '|',
299
- useGlobalColumns: true,
300
- usageExample: 'command [option]',
301
- })
302
- ```
149
+ <a href="https://ko-fi.com/casraf" target="_blank">
150
+ <img height="36"
151
+ src="https://cdn.ko-fi.com/cdn/kofi1.png?v=3"
152
+ alt="Buy Me a Coffee at ko-fi.com" />
153
+ </a>
303
154
 
304
- #### Shell output
155
+ I welcome any issues or pull requests on GitHub. If you find a bug, or would like a new feature,
156
+ don't hesitate to open an appropriate issue and I will do my best to reply promptly.
package/command.d.ts CHANGED
@@ -15,34 +15,29 @@ export declare const CommandConfig: <RunArgs extends ArgsObject = ArgsObject>(ar
15
15
  * instance of Massarg used to invoke this command (the top-level instance)
16
16
  */
17
17
  run: z.ZodType<Runner<RunArgs>, z.ZodTypeDef, Runner<RunArgs>>;
18
- /** Prefix of options understood by this command */
18
+ /** The prefix to match before option names, e.g. `--` */
19
19
  optionPrefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
20
- /** Prefix of negated flags understood by this command */
21
- negateFlagPrefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
22
- /** Prefix of aliases of options understood by this command */
23
- optionAliasPrefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
24
- /** Prefix of aliases of negated flags understood by this command */
25
- negateAliasPrefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
20
+ /** The prefix to match before option aliases, e.g. `-` */
21
+ aliasPrefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
26
22
  }, "strip", z.ZodTypeAny, {
27
23
  name: string;
28
24
  description: string;
29
25
  run: Runner<RunArgs>;
30
26
  aliases?: string[] | undefined;
31
27
  optionPrefix?: string | undefined;
32
- negateFlagPrefix?: string | undefined;
33
- optionAliasPrefix?: string | undefined;
34
- negateAliasPrefix?: string | undefined;
28
+ aliasPrefix?: string | undefined;
35
29
  }, {
36
30
  name: string;
37
31
  description: string;
38
32
  run: Runner<RunArgs>;
39
33
  aliases?: string[] | undefined;
40
34
  optionPrefix?: string | undefined;
41
- negateFlagPrefix?: string | undefined;
42
- optionAliasPrefix?: string | undefined;
43
- negateAliasPrefix?: string | undefined;
35
+ aliasPrefix?: string | undefined;
44
36
  }>;
45
37
  export type CommandConfig<RunArgs extends ArgsObject = ArgsObject> = z.infer<ReturnType<typeof CommandConfig<RunArgs>>>;
38
+ /**
39
+ * An object with string keys and any values.
40
+ */
46
41
  export type ArgsObject = Record<string | number | symbol, any>;
47
42
  export type Runner<Args extends ArgsObject> = (options: Args, instance: MassargCommand<Args>) => Promise<void> | void;
48
43
  /**
@@ -76,12 +71,9 @@ export declare class MassargCommand<Args extends ArgsObject = ArgsObject> implem
76
71
  private _helpConfig;
77
72
  parent?: MassargCommand<any>;
78
73
  optionPrefix: string;
79
- negateFlagPrefix: string;
80
- optionAliasPrefix: string;
81
- negateAliasPrefix: string;
74
+ aliasPrefix: string;
82
75
  constructor(options: CommandConfig<Args>, parent?: MassargCommand<any>);
83
76
  get optionPrefixes(): Prefixes;
84
- private getPrefixes;
85
77
  get helpConfig(): DeepRequired<HelpConfig>;
86
78
  /**
87
79
  * Add a sub-command to this command.
@@ -101,9 +93,10 @@ export declare class MassargCommand<Args extends ArgsObject = ArgsObject> implem
101
93
  * a boolean value, or to indicate that a command should be run in a different
102
94
  * mode.
103
95
  *
104
- * A flag can be negated by prefixing it with `no-`. For example, `--no-verbose`,
105
- * or by prefixing the alias with `^` instead of `-`. This is configurable via the command's
106
- * configuration.
96
+ * A flag can be negated by using `negatable: true`. By default, the negated name is the same
97
+ * as the option name, prefixed by `no-`, and each of the aliases will be uppercased.
98
+ * For example, `--verbose` and `--no-verbose`, or `-v` and `-V`.
99
+ * This behavior can be overridden by the `negatedName` and `negatedAliases` options.
107
100
  */
108
101
  flag(config: FlagConfig): MassargCommand<Args>;
109
102
  flag(config: MassargFlag): MassargCommand<Args>;
@@ -173,6 +166,12 @@ export declare class MassargCommand<Args extends ArgsObject = ArgsObject> implem
173
166
  */
174
167
  printHelp(): void;
175
168
  }
169
+ /**
170
+ * A command that prints help for this command, or a sub-command if specified.
171
+ *
172
+ * This command is automatically added to the top-level command if you use `bindCommand: true` in `help()`.
173
+ * You can also add it manually to any command.
174
+ */
176
175
  export declare class MassargHelpCommand<T extends {
177
176
  command?: string;
178
177
  } = {
package/command.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAqB,UAAU,EAAiB,MAAM,QAAQ,CAAA;AACrE,OAAO,EACL,aAAa,EACb,WAAW,EACX,iBAAiB,EAMjB,QAAQ,EACR,UAAU,EACX,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,YAAY,EAAqD,MAAM,SAAS,CAAA;AACzF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAGzD,eAAO,MAAM,aAAa;IAEtB,mBAAmB;;IAEnB,wDAAwD;;IAExD,sBAAsB;;IAEtB;;;OAGG;;IAKH,mDAAmD;;IAEnD,yDAAyD;;IAEzD,8DAA8D;;IAE9D,oEAAoE;;;;;;;;;;;;;;;;;;;;EAEpE,CAAA;AAEJ,MAAM,MAAM,aAAa,CAAC,O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,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC;IAK7C;;;;;;OAMG;IACH,KAAK,CACH,IAAI,WAAwB,EAC5B,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,EACpB,MAAM,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,GAC5B,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAQvB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAoBnB,4DAA4D;IAC5D,OAAO,CACL,IAAI,EAAE,MAAM,EAAE,EACd,MAAM,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,EACtB,MAAM,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,EAC5B,aAAa,CAAC,EAAE,KAAK,GACpB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IACvB,OAAO,CACL,IAAI,EAAE,MAAM,EAAE,EACd,MAAM,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,EACtB,MAAM,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,EAC5B,aAAa,CAAC,EAAE,IAAI,GACnB,IAAI;IAmFP,OAAO,CAAC,cAAc;IAatB;;OAEG;IACH,UAAU,IAAI,MAAM;IAIpB;;OAEG;IACH,SAAS,IAAI,IAAI;CAGlB;AAED;;;;;GAKG;AACH,qBAAa,kBAAkB,CAC7B,CAAC,SAAS;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CACrD,SAAQ,cAAc,CAAC,CAAC,CAAC;gBACb,MAAM,GAAE,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAM;CAgChE"}
package/command.js CHANGED
@@ -23,14 +23,10 @@ const CommandConfig = (args) => zod_1.z.object({
23
23
  .function()
24
24
  .args(args, zod_1.z.any())
25
25
  .returns(zod_1.z.union([zod_1.z.promise(zod_1.z.void()), zod_1.z.void()])),
26
- /** Prefix of options understood by this command */
27
- optionPrefix: zod_1.z.string().default(option_1.OPT_FULL_PREFIX).optional(),
28
- /** Prefix of negated flags understood by this command */
29
- negateFlagPrefix: zod_1.z.string().default(option_1.NEGATE_FULL_PREFIX).optional(),
30
- /** Prefix of aliases of options understood by this command */
31
- optionAliasPrefix: zod_1.z.string().default(option_1.OPT_SHORT_PREFIX).optional(),
32
- /** Prefix of aliases of negated flags understood by this command */
33
- negateAliasPrefix: zod_1.z.string().default(option_1.NEGATE_SHORT_PREFIX).optional(),
26
+ /** The prefix to match before option names, e.g. `--` */
27
+ optionPrefix: zod_1.z.string().default(option_1.DEFAULT_OPT_FULL_PREFIX).optional(),
28
+ /** The prefix to match before option aliases, e.g. `-` */
29
+ aliasPrefix: zod_1.z.string().default(option_1.DEFAULT_OPT_SHORT_PREFIX).optional(),
34
30
  });
35
31
  exports.CommandConfig = CommandConfig;
36
32
  /**
@@ -58,10 +54,8 @@ class MassargCommand {
58
54
  this.options = [];
59
55
  this.examples = [];
60
56
  this.args = {};
61
- this.optionPrefix = option_1.OPT_FULL_PREFIX;
62
- this.negateFlagPrefix = option_1.NEGATE_FULL_PREFIX;
63
- this.optionAliasPrefix = option_1.OPT_SHORT_PREFIX;
64
- this.negateAliasPrefix = option_1.NEGATE_SHORT_PREFIX;
57
+ this.optionPrefix = option_1.DEFAULT_OPT_FULL_PREFIX;
58
+ this.aliasPrefix = option_1.DEFAULT_OPT_SHORT_PREFIX;
65
59
  (0, exports.CommandConfig)(zod_1.z.any()).parse(options);
66
60
  this.name = options.name;
67
61
  this.description = options.description;
@@ -71,31 +65,22 @@ class MassargCommand {
71
65
  this.parent = parent;
72
66
  // TODO mix these with help config
73
67
  this.optionPrefix = options.optionPrefix ?? this.optionPrefix;
74
- this.negateFlagPrefix = options.negateFlagPrefix ?? this.negateFlagPrefix;
75
- this.optionAliasPrefix = options.optionAliasPrefix ?? this.optionAliasPrefix;
76
- this.negateAliasPrefix = options.negateAliasPrefix ?? this.negateAliasPrefix;
68
+ this.aliasPrefix = options.aliasPrefix ?? this.aliasPrefix;
77
69
  }
78
70
  get optionPrefixes() {
79
- return this.getPrefixes();
80
- }
81
- getPrefixes() {
82
71
  return {
83
- optionPrefix: this.optionPrefix,
84
- aliasPrefix: this.optionAliasPrefix,
85
- negateFlagPrefix: this.negateFlagPrefix,
86
- negateAliasPrefix: this.negateAliasPrefix,
72
+ normalPrefix: this.optionPrefix,
73
+ aliasPrefix: this.aliasPrefix,
87
74
  };
88
75
  }
89
76
  get helpConfig() {
90
77
  if (this.parent) {
91
- return (0, utils_1.deepMerge)(this.parent.helpConfig, this._helpConfig);
78
+ return (0, utils_1._deepMerge)(this.parent.helpConfig, this._helpConfig);
92
79
  }
93
- return (0, utils_1.deepMerge)(help_1.defaultHelpConfig, (0, utils_1.deepMerge)({
80
+ return (0, utils_1._deepMerge)(help_1.defaultHelpConfig, (0, utils_1._deepMerge)({
94
81
  optionOptions: {
95
82
  namePrefix: this.optionPrefix,
96
- aliasPrefix: this.optionAliasPrefix,
97
- negatePrefix: this.negateFlagPrefix,
98
- negateAliasPrefix: this.negateAliasPrefix,
83
+ aliasPrefix: this.aliasPrefix,
99
84
  },
100
85
  }, this._helpConfig));
101
86
  }
@@ -264,13 +249,13 @@ class MassargCommand {
264
249
  const option = this.options.find((o) => o.isMatch(arg, prefixes));
265
250
  if (!option) {
266
251
  throw new error_1.ValidationError({
267
- path: [option_1.MassargOption.findNameInArg(arg, prefixes)],
252
+ path: [arg.slice(prefixes.normalPrefix.length)],
268
253
  code: 'unknown_option',
269
254
  message: 'Unknown option',
270
255
  });
271
256
  }
272
257
  const res = option.parseDetails([arg, ...argv], { ...this.args }, prefixes);
273
- this.args[res.key] = (0, utils_1.setOrPush)(res.value, this.args[res.key], option.isArray);
258
+ this.args[res.key] = (0, utils_1._setOrPush)(res.value, this.args[res.key], option.isArray);
274
259
  return res.argv;
275
260
  }
276
261
  getArgs(argv, args, parent, parseCommands = false) {
@@ -371,6 +356,12 @@ class MassargCommand {
371
356
  }
372
357
  }
373
358
  exports.MassargCommand = MassargCommand;
359
+ /**
360
+ * A command that prints help for this command, or a sub-command if specified.
361
+ *
362
+ * This command is automatically added to the top-level command if you use `bindCommand: true` in `help()`.
363
+ * You can also add it manually to any command.
364
+ */
374
365
  class MassargHelpCommand extends MassargCommand {
375
366
  constructor(config = {}) {
376
367
  const _config = (0, exports.CommandConfig)(zod_1.z.any()).parse({
package/command.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mCAAiE;AACjE,iCAAqE;AACrE,qCAWiB;AACjB,mCAAyF;AACzF,uCAAyD;AACzD,mCAAgC;AAEzB,MAAM,aAAa,GAAG,CAA0C,IAAwB,EAAE,EAAE,CACjG,OAAC,CAAC,MAAM,CAAC;IACP,mBAAmB;IACnB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,wDAAwD;IACxD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,sBAAsB;IACtB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACtC;;;OAGG;IACH,GAAG,EAAE,OAAC;SACH,QAAQ,EAAE;SACV,IAAI,CAAC,IAAI,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC;SACnB,OAAO,CAAC,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,OAAO,CAAC,OAAC,CAAC,IAAI,EAAE,CAAC,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAA+B;IAClF,mDAAmD;IACnD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,wBAAe,CAAC,CAAC,QAAQ,EAAE;IAC5D,yDAAyD;IACzD,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC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