Skip to content

Commit 161e418

Browse files
committed
Clarify clientgen usage in latest version
1 parent eb81bbd commit 161e418

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,16 @@ Command line options:
181181
--no-introspection Do not expect support for Introspection
182182
```
183183

184-
This utility should output one header and one source file for each request document. A request document may contain
185-
more than one operation, in which case you must specify the `--operation` (or `-o`) parameter to indicate which one
186-
should be used to generate the files. If you want to generate client code for more than one operation in the same
187-
document, you will need to run `clientgen` more than once and specify another operation name each time.
184+
This utility should output one header and one source file for each request document. A request document may contain more
185+
than one operation, in which case it will output definitions for all of them together. You may limit the output to a
186+
single operation from the request document by specifying the `--operation` (or `-o`) argument with the operation name.
188187

189188
The generated code depends on the `graphqlclient` library for serialization of built-in types. If you link the generated
190189
code, you'll also need to link `graphqlclient`, `graphqlpeg` for the pre-parsed, pre-validated request AST, and
191190
`graphqlresponse` for the `graphql::response::Value` implementation.
192191

193-
Sample output for `clientgen` is in the sub-directories of [samples/client](samples/client), and each sample is consumed by
194-
a unit test in [test/ClientTests.cpp](test/ClientTests.cpp).
192+
Sample output for `clientgen` is in the sub-directories of [samples/client](samples/client), and several of them are
193+
consumed by unit tests in [test/ClientTests.cpp](test/ClientTests.cpp).
195194

196195
### tests (`GRAPHQL_BUILD_TESTS=ON`)
197196

0 commit comments

Comments
 (0)