We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c695b8d commit e427730Copy full SHA for e427730
1 file changed
databricks_cli/tokens/cli.py
@@ -29,11 +29,14 @@
29
from databricks_cli.version import print_version_callback, version
30
31
32
+TOKEN_LIFETIME_SEC = 60 * 60 * 24 * 90
33
+
34
35
@click.command(context_settings=CONTEXT_SETTINGS,
36
short_help='Create a token.')
-@click.option('--lifetime-seconds', required=False, default=60 * 60 * 24 * 90,
- help="Number of seconds for the token to live for. The default is 129600 seconds or "
- "90 days.")
37
+@click.option('--lifetime-seconds', required=False, default=TOKEN_LIFETIME_SEC,
38
+ help="Number of seconds for the token to live for. The default is %d seconds or "
39
+ "%d days." % (TOKEN_LIFETIME_SEC, TOKEN_LIFETIME_SEC / 60 / 60 / 24))
40
@click.option('--comment', required=True,
41
help="String describing what the token is for.")
42
@debug_option
0 commit comments