Skip to content

Commit a6af7f8

Browse files
committed
refactor: Rename show_help and check_and_update functions to main for consistency
1 parent 4c2c0ec commit a6af7f8

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

bugscanx/handler/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def run_9():
3636

3737
def run_10():
3838
from bugscanx.modules.others import script_help
39-
script_help.show_help()
39+
script_help.main()
4040

4141
def run_11():
4242
from bugscanx.modules.others import script_updater
43-
script_updater.check_and_update()
43+
script_updater.main()

bugscanx/modules/others/script_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
console = Console()
77

8-
def show_help():
8+
def main():
99

1010
help_text = """
1111

bugscanx/modules/others/script_updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def restart_application():
6262
time.sleep(1)
6363
os.execv(sys.executable, [sys.executable] + sys.argv)
6464

65-
def check_and_update():
65+
def main():
6666
try:
6767
has_update, current_version, latest_version = check_for_updates()
6868
if not has_update:

0 commit comments

Comments
 (0)