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