Skip to content

Commit

Permalink
Enable header via command line
Browse files Browse the repository at this point in the history
  • Loading branch information
mlankamp committed Mar 27, 2024
1 parent 79668ba commit c6fc717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ $ openapi-ts --help
--request <value> Path to custom request file
--useDateType <value> Output Date instead of string for the format "date-time" in the models (default: false)
--useLegacyEnums Generate Typescript enum definitions (default: false)
--header <value> Add a header to the generated files
-h, --help display help for command
```
Expand Down
1 change: 1 addition & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const params = program
.option('--write', 'Write files to disk? (used for testing)')
.option('--no-write', 'Skip writing files to disk (used for testing)')
.option('--useLegacyEnums', 'Generate Typescript enum definitions')
.option('--header <value>', 'Specify the generated file header')
.parse(process.argv)
.opts();

Expand Down

0 comments on commit c6fc717

Please sign in to comment.