grundleborg / slack-advanced-exporter

A tool for exporting additional data from Slack that is missing from the official data export.
MIT License
95 stars 18 forks source link

Incorrect Usage: flag provided but not defined: -api-token #15

Closed latonita closed 2 years ago

latonita commented 4 years ago

./slack-advanced-exporter-windows-amd64.exe --input-archive 0.zip --output-archive 1.zip fetch-emails --api-token $ST this command works okay, but then ./slack-advanced-exporter-windows-amd64.exe --input-archive 1.zip --output-archive 2.zip fetch-attachments --api-token $ST tells me that Incorrect Usage: flag provided but not defined: -api-token

$ST contains token

bartekbrak commented 4 years ago

Your reasoning is incorrect. fetch-attachments does not need a token. Inspect help of both commands:

$ ./slack-advanced-exporter-linux-amd64 fetch-emails --help | grep token
   --api-token value  Slack API token. Can be obtained here: https://api.slack.com/docs/oauth-test-tokens
$ ./slack-advanced-exporter-linux-amd64 fetch-attachments --help | grep token

Try without token, it just works.

abraha2d commented 4 years ago

Sorry for the bump, but just noticed that it's --api-token, not -api-token? (two dashes instead of one at the beginning).

grundleborg commented 2 years ago

This is fixed in v0.4.0