hoop33 / gqall

A CLI for running a GraphQL query and requesting all fields
MIT License
14 stars 1 forks source link

Flags can't go after url and query #1

Open hoop33 opened 5 years ago

hoop33 commented 5 years ago

url and query are positional arguments in yargs, so if you try to pass a header before url and query, you get an error.

hoop33 commented 5 years ago

This seems to be caused by the fact that headers is type: "array" -- see https://github.com/yargs/yargs/issues/1044 .