cli icon indicating copy to clipboard operation
cli copied to clipboard

`--help`, and `tr-push help` don't work

Open josephlewis42 opened this issue 8 months ago • 0 comments

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?

  1. Help about the command, its options, and its inputs would be displayed.
  2. If unexpected arguments are supplied then the command would fail to run.

josephlewis42 avatar Jun 03 '24 20:06 josephlewis42