Skip to content

Commit dd200ac

Browse files
Add --disable-auth-warning CLI flag.
1 parent a106da2 commit dd200ac

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tabpy/tabpy.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
44
Usage:
55
tabpy [-h] | [--help]
6-
tabpy [--config <CONFIG>]
6+
tabpy [--config <CONFIG>] [--disable-auth-warning]
77
88
Options:
9-
-h --help Show this screen.
10-
--config <CONFIG> Path to a config file.
9+
-h --help Show this screen.
10+
--config <CONFIG> Path to a config file.
11+
--disable-auth-warning Disable authentication warning.
1112
"""
1213

1314
import docopt
@@ -38,9 +39,13 @@ def main():
3839
args = docopt.docopt(__doc__)
3940
config = args["--config"] or None
4041

42+
disable_auth_warning = False
43+
if args["--disable-auth-warning"]:
44+
disable_auth_warning = True
45+
4146
from tabpy.tabpy_server.app.app import TabPyApp
4247

43-
app = TabPyApp(config)
48+
app = TabPyApp(config, disable_auth_warning)
4449
app.run()
4550

4651

0 commit comments

Comments
 (0)