Skip to content

Commit 6bd96dd

Browse files
committed
add auth_type arg to wes-client CLI
1 parent 9507232 commit 6bd96dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wes_client/wes_client_main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def main(argv=sys.argv[1:]):
1616
parser.add_argument("--host", type=str, default=os.environ.get("WES_API_HOST"),
1717
help="Example: '--host=localhost:8080'. Defaults to WES_API_HOST.")
1818
parser.add_argument("--auth", type=str, default=os.environ.get("WES_API_AUTH"), help="Defaults to WES_API_AUTH.")
19+
parser.add_argument("--auth_type", type=str, default=None, help="Defaults to None.")
1920
parser.add_argument("--proto", type=str, default=os.environ.get("WES_API_PROTO", "https"),
2021
help="Options: [http, https]. Defaults to WES_API_PROTO (https).")
2122
parser.add_argument("--quiet", action="store_true", default=False)
@@ -49,7 +50,7 @@ def main(argv=sys.argv[1:]):
4950
print(u"%s %s" % (sys.argv[0], pkg[0].version))
5051
exit(0)
5152

52-
client = WESClient({'auth': args.auth, 'proto': args.proto, 'host': args.host})
53+
client = WESClient({'auth': args.auth, 'auth_type': args.auth_type, 'proto': args.proto, 'host': args.host})
5354

5455
if args.list:
5556
response = client.list_runs() # how to include: page_token=args.page, page_size=args.page_size ?

0 commit comments

Comments
 (0)