Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround CLI argument parsing issue #1095

Closed

Conversation

sfoulston
Copy link
Contributor

Due to an underlying issue with the Oclif framework that the Apollo CLI uses, the schema:download command (at least) fails when --header arguments are not placed at the end of the command, such as when specifying a non-default output path. The ApolloCodegenLib places the output path after the header argument, so the schema download always fails.

This PR just moves the header argument to the end of the bash command by reordering the array of arguments in ApolloSchemaOptions#arguments.

See also:
apollographql/apollo-tooling#844 (comment)

@sfoulston sfoulston closed this Mar 22, 2020
@sfoulston sfoulston deleted the fix/cli-argument-parsing branch March 22, 2020 16:34
@sfoulston
Copy link
Contributor Author

PR was created against wrong branch. Please see #1096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant