···3434 Access token: xxx
3535 Access token secret: xxx
36363737-This will create a file called `auth.json` in your current directory containing the required values.
3737+This will create a file called `auth.json` in your current directory containing the required values. To save the file at a different path or filename, use the `--auth=myauth.json` option.
38383939## Retrieving your Twitter followers
4040
+6-4
twitter_to_sqlite/cli.py
···121213131414@cli.command()
1515-@click.argument(
1616- "auth_path",
1515+@click.option(
1616+ "-a",
1717+ "--auth",
1718 type=click.Path(file_okay=True, dir_okay=False, allow_dash=False),
1819 default="auth.json",
2020+ help="Path to save tokens to, defaults to auth.json",
1921)
2020-def auth(auth_path):
2222+def auth(auth):
2123 "Save authentication credentials to a JSON file"
2224 click.echo("Create an app here: https://developer.twitter.com/en/apps")
2325 click.echo("Then navigate to 'Keys and tokens' and paste in the following:")
···2628 api_secret_key = click.prompt("API secret key")
2729 access_token = click.prompt("Access token")
2830 access_token_secret = click.prompt("Access token secret")
2929- open(auth_path, "w").write(
3131+ open(auth, "w").write(
3032 json.dumps(
3133 {
3234 "api_key": api_key,