cli
cli copied to clipboard
`--help`, and `tr-push help` don't work
What happened?
Trying to use --help
or help
returns a message that an API key must be provided.
$ tr-push --help
A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY
$ tr-push help
A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY
Worse, after supplying the argument the command immediately tries write data:
$ tr-push --auth=$TRANSCEND_API_KEY --help
Reading file "./transcend.yml"...
Successfully read in "./transcend.yml"
Fetching data with page size 50...
Syncing "XX" data categories...
What's expected?
- Help about the command, its options, and its inputs would be displayed.
- If unexpected arguments are supplied then the command would fail to run.