diff --git a/slpkg/arguments.py b/slpkg/arguments.py index 8f936d08..b8b4ec4f 100644 --- a/slpkg/arguments.py +++ b/slpkg/arguments.py @@ -21,7 +21,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import sys from repolist import RepoList from __metadata__ import MetaData as _m @@ -74,7 +73,6 @@ def options(): ] for opt in arguments: print(opt) - sys.exit(0) def usage(repo): @@ -112,4 +110,3 @@ def usage(repo): ] for usg in view: print(usg) - sys.exit(0) diff --git a/slpkg/main.py b/slpkg/main.py index ebf85c3b..11ed41ef 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -359,6 +359,7 @@ def main(): if len(args) == 0: usage('') + sys.exit(0) if len(args) == 2 and args[0] == 'update' and args[1] == 'slpkg': args[0] = 'update-slpkg' @@ -390,7 +391,7 @@ def main(): '-f': argparse.bin_find, '-p': argparse.pkg_desc, '-d': argparse.pkg_contents, - '-g': argparse.congiguration + '-g': argparse.congiguration, } try: arguments[args[0]]()