Skip to content

Commit 7af2d61

Browse files
authored
Merge pull request #294 from magurotuna/fix-cli-readme
Update cli's README.md
2 parents 183489e + c855379 commit 7af2d61

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

graphql_client_cli/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ARGS:
3333

3434
```
3535
USAGE:
36-
graphql-client generate [FLAGS] [OPTIONS] <query_path> <schema_path>
36+
graphql-client generate [FLAGS] [OPTIONS] <query_path> --schema-path <schema_path>
3737
3838
FLAGS:
3939
-h, --help Prints help information
@@ -48,16 +48,17 @@ OPTIONS:
4848
-d, --deprecation-strategy <deprecation_strategy>
4949
You can choose deprecation strategy from allow, deny, or warn. Default value is warn.
5050
51-
-m, --module_visibility <module_visibility>
51+
-m, --module-visibility <module_visibility>
5252
You can choose module and target struct visibility from pub and private. Default value is pub.
5353
54+
-o, --output-directory <output_directory> The directory in which the code will be generated
55+
-s, --schema-path <schema_path> Path to GraphQL schema file (.json or .graphql).
5456
-o, --selected-operation <selected_operation>
5557
Name of target query. If you don't set this parameter, cli generate all queries in query file.
5658
5759
5860
ARGS:
59-
<query_path> Path to graphql query file.
60-
<schema_path> Path to graphql schema file.
61+
<query_path> Path to the GraphQL query file.
6162
```
6263

6364
If you want to use formatting feature, you should install like this.

0 commit comments

Comments
 (0)