From 0ea413cc681605e36fc9c3594fe2633f1d779c50 Mon Sep 17 00:00:00 2001 From: Uniminin <42061747+Uniminin@users.noreply.github.com> Date: Wed, 5 Feb 2020 19:10:04 +0600 Subject: [PATCH] Delete main.py --- src/bin/main.py | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/bin/main.py diff --git a/src/bin/main.py b/src/bin/main.py deleted file mode 100644 index 163b464..0000000 --- a/src/bin/main.py +++ /dev/null @@ -1,31 +0,0 @@ -import sys -from termcolor import cprint - - -def cli_arg(): - if len(sys.argv) == 1: - cprint("No Arguments Were Passed. Type -h to view basic usage.", "red") - exit() - # sys.arg[1] is the file itself. - elif sys.argv[1].lower() == "-h": - cprint(""" -File used as bankend to parse arguments and options into subcommands - -SYNOPSIS: command OPTION [SUBCOMS] - -OPTIONS: - -G, --gui Open Graphical User Interface - -SUBCOMS (Subcommands): - resolve resolve package on the system -""", "green") - - else: - cprint("Incorrect Argument! Type -h to view basic usage.", "red") - - -if __name__ == '__main__': - try: - cli_arg() - except IndexError: - pass