Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The message for td apikey:set -f can be misleading if env vars TREASURE_DATA_API_KEY or TD_API_KEY are set #12

Open
kiyoto opened this issue Dec 21, 2012 · 3 comments
Assignees

Comments

@kiyoto
Copy link

kiyoto commented Dec 21, 2012

Env variables override "td apikey:set -f", i.e., whatever new apikey you set would not replace the one set by the env variable.

This behavior is intended, but the associated message is kind of misleading:

$ td apikey:set <new_apikey>

API key is set.
Use 'td db:create <db_name>' to create a database.

When, in reality, API key is not set to <new_apikey>.

@ghost ghost assigned repeatedly Dec 23, 2012
@takkanm
Copy link
Contributor

takkanm commented Aug 13, 2015

@kiyoto
Currently, td apikey:set -f will display an error message.

$ TD_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX td apikey:set -f
usage:
 $ td apikey:set <apikey>

description:
 Set Treasure Data API key

options:
 -f, --force                      overwrite current account setting

Is this, would be the behavior you want?

@kiyoto
Copy link
Author

kiyoto commented Aug 13, 2015

@takkanm At least it should have a warning. But wow, someone is working on an issue from 2.5 years ago!

@takkanm
Copy link
Contributor

takkanm commented Aug 19, 2015

Settings from the environment variable can not be, what are you expected that the effect of the message appears as a warning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants