Skip to content

Commit

Permalink
docs: update cli options
Browse files Browse the repository at this point in the history
  • Loading branch information
7nohe committed Jul 25, 2022
1 parent e0cf74a commit 1333173
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@ $ npm install -D @7nohe/openapi-react-query-codegen
```
$ openapi-rq --help
Usage: openapi-rq [options]
Generate React Query code based on OpenAPI
Options:
-V, --version output the version number
-p, --path <path> Path to OpenAPI file
-o, --output-dir [directory] Directory to output the generated package (default: "openapi")
-h, --help display help for command
Usage: openapi-rq [options]
Generate React Query code based on OpenAPI
Options:
-V, --version output the version number
-i, --input <value> OpenAPI specification, can be a path, url or string content (required)
-o, --output <value> Output directory (default: "openapi")
-c, --client <value> HTTP client to generate [fetch, xhr, node, axios, angular] (default: "fetch")
--exportSchemas <value> Write schemas to disk (default: false)
--indent <value> Indentation options [4, 2, tabs] (default: "4")
--postfix <value> Service name postfix (default: "Service")
--request <value> Path to custom request file
-h, --help display help for command
```

## Example Usage
Expand Down

0 comments on commit 1333173

Please sign in to comment.