Skip to content

Commit 771a3d0

Browse files
committed
add -h (help) option (SOFTWARE-4751)
1 parent e931b7d commit 771a3d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

osg-comanage-project-usermap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
-f passfile specify path to file to open and read PASS
2121
-e ENDPOINT specify REST endpoint
2222
-o outfile specify output file (default: write to stdout)
23+
-h display this help text
2324
2425
PASS for USER is taken from the first of:
2526
1. -u USER:PASS
@@ -149,6 +150,7 @@ def parse_options(args):
149150
passfile = None
150151

151152
for op, arg in ops:
153+
if op == '-h': usage()
152154
if op == '-u': options.user = arg
153155
if op == '-d': passfd = int(arg)
154156
if op == '-f': passfile = arg

0 commit comments

Comments
 (0)