apollographql / apollographql/apollo-tooling
Downloading scheme.json fails with specific command usage
Open
:hammer: cli
🐞 bug
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
Is it expected behavior to fail downloading `scheme.json` depending on the order of the options?
```
// Success
apollo schema:download --endpoint= /schema.json --header=
✔ Loading Apollo Project
✔ Saving schema to /schema.json
// Failed
apollo schema:download --endpoint= --header= /schema.json
✔ Loading Apollo Project
✖ Saving schema to /schema.json
→ Header name must be a valid HTTP Token [""]
TypeError: Header name must be a valid HTTP Token [""]
```
Contributor guide
Assessment
This issue has not been assessed yet.