Skip to content

Commit 78d0881

Browse files
authored
Merge pull request #421 from patrick-fitzgerald/main
Updating CLI readme and documentation.
2 parents 0f9fff9 + 00d8e7b commit 78d0881

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

graphql_client_cli/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ FLAGS:
4444
-V, --version Prints version information
4545
4646
OPTIONS:
47-
-a, --additional-derives <additional_derives>
48-
Additional derives that will be added to the generated structs and enums for the response and the variables.
49-
--additional-derives='Serialize,PartialEq'
47+
-I, --variables-derives <variables_derives>
48+
Additional derives that will be added to the generated structs and enums for the variables.
49+
--variables-derives='Serialize,PartialEq'
50+
-O, --response-derives <response_derives>
51+
Additional derives that will be added to the generated structs and enums for the response.
52+
--response-derives='Serialize,PartialEq'
5053
-d, --deprecation-strategy <deprecation_strategy>
5154
You can choose deprecation strategy from allow, deny, or warn. Default value is warn.
5255

graphql_client_cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ enum Cli {
5050
#[clap(short = 'I', long = "variables-derives")]
5151
variables_derives: Option<String>,
5252
/// Additional derives that will be added to the generated structs and enums for the response.
53-
/// --output-derives='Serialize,PartialEq'
53+
/// --response-derives='Serialize,PartialEq'
5454
#[clap(short = 'O', long = "response-derives")]
5555
response_derives: Option<String>,
5656
/// You can choose deprecation strategy from allow, deny, or warn.

0 commit comments

Comments
 (0)