Skip to content

Commit

Permalink
Add envar precedence help and mapbox-config support
Browse files Browse the repository at this point in the history
Closes #33
  • Loading branch information
Sean Gillies committed Dec 18, 2015
1 parent aa28d86 commit 3f82212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mapboxcli/scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def main_group(ctx, verbose, quiet, access_token, config):
$ mapbox --access-token MY_TOKEN ...
as an environment variable named MAPBOX_ACCESS_TOKEN or
MapboxAccessToken
as an environment variable named MAPBOX_ACCESS_TOKEN (higher
precedence) or MapboxAccessToken (lower precedence).
\b
$ export MAPBOX_ACCESS_TOKEN=MY_TOKEN
Expand Down
2 changes: 1 addition & 1 deletion mapboxcli/scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def config(ctx):
if 'MAPBOX_ACCESS_TOKEN' in os.environ:
click.echo("MAPBOX_ACCESS_TOKEN = {0}".format(
os.environ['MAPBOX_ACCESS_TOKEN']))
elif 'MapboxAccessToken' in os.environ:
if 'MapboxAccessToken' in os.environ:
click.echo("MapboxAccessToken = {0}".format(
os.environ['MapboxAccessToken']))
if 'MAPBOX_VERBOSE' in os.environ:
Expand Down

0 comments on commit 3f82212

Please sign in to comment.