We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97dd94d commit 99bd06dCopy full SHA for 99bd06d
mrmat_python_api_flask/cli.py
@@ -57,15 +57,14 @@ def main() -> int:
57
help='Database URI')
58
parser.add_argument('--oidc-secrets',
59
dest='oidc_secrets',
60
- required=True,
+ required=False,
61
help='Path to file containing OIDC registration')
62
63
args = parser.parse_args()
64
65
- overrides = {
66
- 'DEBUG': args.debug,
67
- 'OIDC_CLIENT_SECRETS': args.oidc_secrets
68
- }
+ overrides = {'DEBUG': args.debug}
+ if args.oidc_secrets is not None:
+ overrides['OIDC_CLIENT_SECRETS'] = args.oidc_secrets
69
if args.db is not None:
70
overrides['SQLALCHEMY_DATABASE_URI'] = args.db
71
0 commit comments