Skip to content

Commit 313632f

Browse files
committed
refactor: Standardize input mode options to title case across multiple modules
1 parent f12d8e0 commit 313632f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

bugscanx/modules/scanners/cidr_scanner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
file_write_lock = threading.Lock()
1212

1313
def get_cidrs_input():
14-
input_type = get_input("Select input mode", "choice", choices=["manual", "file"])
14+
input_type = get_input("Select input mode", "choice", choices=["Manual", "File"])
1515

16-
if input_type == "file":
16+
if input_type == "File":
1717
filepath = get_input("Enter path to CIDR list file", "file")
1818
cidr_list = read_cidrs_from_file(filepath)
1919
if not cidr_list:

bugscanx/modules/scrapers/iplookup/iplookup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def get_input_interactively():
4646
ips = []
4747

4848
input_choice = get_input("Select input mode", "choice",
49-
choices=["manual", "file"])
49+
choices=["Manual", "File"])
5050

51-
if input_choice == "manual":
51+
if input_choice == "Manual":
5252
cidr = get_input("Enter IP or CIDR", validators=[is_cidr])
5353
ips.extend(process_input(cidr))
5454
else:

bugscanx/modules/scrapers/subfinder/subfinder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def run(self, domains, output_file, sources):
8888
def main():
8989
domains = []
9090
input_type = get_input("Select input mode", "choice",
91-
choices=["manual", "file"])
91+
choices=["Manual", "File"])
9292

93-
if input_type == "manual":
93+
if input_type == "Manual":
9494
domain_input = get_input("Enter domain(s)")
9595
domains = [d.strip() for d in domain_input.split(',') if is_valid_domain(d.strip())]
9696
sources = get_all_sources()

0 commit comments

Comments
 (0)