summaryrefslogtreecommitdiff
path: root/src/frontend/cli
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-11-14 12:24:32 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-11-14 12:24:32 +0000
commit0559c5960fa3caf8532cf9a7499464bcc7239b6d (patch)
tree56acf8e435131fcec67c03298801dc51e0da40d5 /src/frontend/cli
parentbf60e8f2a1dc455d2d1efa7f0186e4f1fb280cf6 (diff)
add dash dash :D
Diffstat (limited to 'src/frontend/cli')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 3a1623e..9a325c4 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -7,56 +7,56 @@ pkgList = sys.argv[2:]
if "__main__" == __name__:
if sys.argv[1:]:
- if "install" in sys.argv[1:]:
+ if "--install" in sys.argv[1:]:
if not pkgList:
sys.exit("\n" + "Nothing to install, please give at least one package name; quitting" + "\n")
else:
startInstall(pkgList)
- elif "hybrid-install" in sys.argv[1:]:
+ elif "--hybrid-install" in sys.argv[1:]:
if not pkgList:
sys.exit("\n" + "Nothing to install, please give at least one package name; quitting" + "\n")
else:
startHybridInstall(pkgList)
- elif "uninstall" in sys.argv[1:]:
+ elif "--uninstall" in sys.argv[1:]:
if not pkgList:
sys.exit("\n" + "Nothing to uninstall, please give at least one package name; quitting" + "\n")
else:
startUninstall(pkgList)
- elif "force-uninstall" in sys.argv[1:]:
+ elif "--force-uninstall" in sys.argv[1:]:
if not pkgList:
sys.exit("\n" + "Nothing to force uninstall, please give at least one package name; quitting" + "\n")
else:
startUninstallForce(pkgList)
- elif "remove-orphans" in sys.argv[1:]:
+ elif "--remove-orphans" in sys.argv[1:]:
removeOrphans()
- elif "update" in sys.argv[1:]:
+ elif "--update" in sys.argv[1:]:
startSync()
- elif "upgrade" in sys.argv[1:]:
+ elif "--upgrade" in sys.argv[1:]:
startUpgrade()
- elif "hybrid-upgrade" in sys.argv[1:]:
+ elif "--hybrid-upgrade" in sys.argv[1:]:
startHybridUpgrade()
- elif "search" in sys.argv[1:]:
+ elif "--search" in sys.argv[1:]:
if not pkgList:
sys.exit("\n" + "Nothing to search, please give at least one package name; quitting" + "\n")
else:
startSearch(pkgList)
- elif "spmsync" in sys.argv[1:]:
+ elif "--spmsync" in sys.argv[1:]:
startSyncSPM()
- elif "rescue" in sys.argv[1:]:
+ elif "--rescue" in sys.argv[1:]:
rescueDB()
- elif "sysinfo" in sys.argv[1:]:
+ elif "--sysinfo" in sys.argv[1:]:
sysInfo()
- elif "mirror" in sys.argv[1:]:
- if "list" in sys.argv[2:]:
+ elif "--mirror" in sys.argv[1:]:
+ if "--list" in sys.argv[2:]:
printMirrorList()
- elif "set" in sys.argv[2:]:
+ elif "--set" in sys.argv[2:]:
if sys.argv[3:]:
setActiveMirror(sys.argv[3:])
else:
showHelp()
else:
showHelp()
- elif "help" in sys.argv[1:]:
+ elif "--help" in sys.argv[1:]:
showHelp()
else:
showHelp()