Skip to content

Commit e89648e

Browse files
committed
Take the schema path as a required keyword argument in the CLI
1 parent 2655bca commit e89648e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graphql_client_cli/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ enum Cli {
4242
},
4343
#[structopt(name = "generate")]
4444
Generate {
45-
// should be a glob
46-
/// Path to graphql query file.
47-
query_path: PathBuf,
48-
/// Path to graphql schema file.
45+
/// Path to GraphQL schema file (.json or .graphql).
46+
#[structopt(short = "s", long = "schema-path")]
4947
schema_path: PathBuf,
48+
/// Path to the GraphQL query file.
49+
query_path: PathBuf,
5050
/// Name of target query. If you don't set this parameter, cli generate all queries in query file.
5151
#[structopt(short = "o", long = "selected-operation")]
5252
selected_operation: Option<String>,

0 commit comments

Comments
 (0)