Skip to content

Commit dcc2cb5

Browse files
tombartonDangoDev
authored andcommitted
feat(*): Add optional warning at top of generated files (#70)
1 parent cfc2083 commit dcc2cb5

File tree

5 files changed

+519
-10
lines changed

5 files changed

+519
-10
lines changed

bin/cli.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ Usage
1414
$ swagger-to-ts [input] [options]
1515
1616
Options
17-
--help display this
18-
--wrapper, -w specify wrapper (default: "declare namespace OpenAPI2")
19-
--output, -o specify output file
20-
--camelcase, -c convert snake_case properties to camelCase (default: off)
21-
--swagger, -s specify Swagger version (default: 2)
22-
--nowrapper -nw disables rendering the wrapper
17+
--help display this
18+
--wrapper, -w specify wrapper (default: "declare namespace OpenAPI2")
19+
--output, -o specify output file
20+
--camelcase, -c convert snake_case properties to camelCase (default: off)
21+
--swagger, -s specify Swagger version (default: 2)
22+
--nowrapper -nw disables rendering the wrapper
23+
--injectWarning -iw injects a warning at the top of the generated file (default: off)
2324
`,
2425
{
2526
flags: {
@@ -53,6 +54,10 @@ Options
5354
type: 'boolean',
5455
alias: 'nw',
5556
},
57+
injectWarning: {
58+
type: 'boolean',
59+
alias: 'iw',
60+
},
5661
},
5762
}
5863
);

0 commit comments

Comments
 (0)