Skip to content

Commit 674d81e

Browse files
committed
fix parser.print_help() issue
1 parent 7fc161c commit 674d81e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

user_scanner/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def main():
4040
description="Scan usernames across multiple platforms."
4141
)
4242
parser.add_argument(
43-
"-u", "--username", required = True, help="Username to scan across platforms"
43+
"-u", "--username", help="Username to scan across platforms"
4444
)
4545
parser.add_argument(
4646
"-c", "--category", choices=CATEGORY_MAPPING.keys(),
@@ -71,7 +71,8 @@ def main():
7171
if re.search(r"[^a-zA-Z0-9\.-]", args.username):
7272
print(Fore.RED + f"[!] Username '{args.username}' contains unsupported special characters. Bluesky will throw error. (Supported: only hyphens and digits)" + Style.RESET_ALL +"\n")
7373
if not args.username:
74-
pass
74+
parser.print_help()
75+
return
7576
else:
7677
print_banner()
7778

0 commit comments

Comments
 (0)