summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 1755666..daf76c9 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -49,21 +49,18 @@ if "__main__" == __name__:
showHelp()
else:
showHelp()
- elif "--branch" in sys.argv[1:]:
- if "--master" in sys.argv[2:]:
- if "--gitlab" in sys.argv[3:]:
- injectGitlabMaster()
- elif "--pagure" in sys.argv[3:]:
- injectPagureMaster()
- else:
- showHelp()
- elif "--next" in sys.argv[2:]:
- if "--gitlab" in sys.argv[3:]:
- injectGitlabNext()
- elif "--pagure" in sys.argv[3:]:
- injectPagureNext()
- else:
- showHelp()
+ elif "--branch=master" in sys.argv[1:]:
+ if "--remote=gitlab" in sys.argv[2:]:
+ injectGitlabMaster()
+ elif "--remote=pagure" in sys.argv[2:]:
+ injectPagureMaster()
+ else:
+ showHelp()
+ elif "--branch=next" in sys.argv[1:]:
+ if "--remote=gitlab" in sys.argv[2:]:
+ injectGitlabNext()
+ elif "--remote=pagure" in sys.argv[2:]:
+ injectPagureNext()
else:
showHelp()
elif "--help" in sys.argv[1:]: