@@ -32,28 +32,17 @@ import massarg from "massarg" // import init function (returns massarg instance)
3232import { Massarg } from " massarg" // import class
3333` ` `
3434
35- ## Initializing
35+ ## Quick Start
3636
3737Call the default export function ` massarg ` , or create a new instance manually using ` new Massarg ()` ,
3838and then you can start chaining commands. Use ` .parse ()` to do the final parsing and run the
3939commands and options.
4040
41- ` ` ` typescript
42- massarg ()
43- .option (... )
44- .command (... )
45- .help (... )
46- .main (... )
47- .parse ()
48- ```
49-
50- ## Quick Start
51-
5241Here is an example with some commonly used examples to get you started. Keep reading for a complete
5342documentation of every option.
5443
5544` ` ` typescript
56- massarg ()
45+ massarg () // or: new Massarg()
5746 .main ((options ) => console .log (" main command" , options ))
5847 .command ({
5948 name: " sub" ,
@@ -113,7 +102,7 @@ Any arguments that are not taken by options or commands, are automatically passe
113102` options.extra ` , which you can access when running a command or when using the return value from
114103` parseArgs() ` .
115104
116- #### Options
105+ ### Options
117106
118107| Name | Type | Required | Example | Description |
119108| ------------- | --------------------------- | -------- | ------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
@@ -157,7 +146,7 @@ Any arguments that are not taken by options or commands, are automatically passe
157146` options.extra ` , which you can access when running a command or when using the return value from
158147` parseArgs() ` .
159148
160- #### Options
149+ ### Options
161150
162151| Name | Type | Required | Default | Example | Description |
163152| ------------- | --------------------------------- | -------- | -------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -212,7 +201,7 @@ above the footer.
212201The examples consist of inputs, outputs, and optional descriptions. The descriptions are displayed
213202atop as titles, if specified.
214203
215- #### Options
204+ ### Options
216205
217206| Name | Type | Required | Default | Example | Description |
218207| ------------- | -------- | -------- | ------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
@@ -237,7 +226,7 @@ massarg().example({
237226You can modify some of the styles and behavior of the help text. None of the options are required,
238227you may override their defaults to modify the behavior.
239228
240- #### Options
229+ ### Options
241230
242231| Name | Type | Default | Description |
243232| ---------------------- | -------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------- |
0 commit comments