Skip to content

Commit e7e8847

Browse files
committed
add email argument
1 parent 1ca714e commit e7e8847

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

integrate/__main__.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@
1212
help="enter the user's id for displaying user details"
1313
)
1414

15+
parser.add_argument(
16+
"-e",
17+
"--email",
18+
type=str,
19+
help="enter the user's email for displaying user details"
20+
)
21+
1522
args = parser.parse_args()
1623

17-
print(args.user_id)
18-
print(find_user(user_id=args.user_id))
24+
if args.user_id:
25+
print(find_user(user_id=args.user_id))
26+
if args.email:
27+
print(find_user(user_email=args.email))

0 commit comments

Comments
 (0)