summaryrefslogtreecommitdiff
path: root/src/frontend/cli
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-07-07 10:32:53 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-07-07 10:32:53 +0100
commit2172358493cfc27db585d150d5305aa07a7563db (patch)
tree896bac9de67eb2f16b3ee82e774ea7f467ccc99c /src/frontend/cli
parent8fa8f13fd8d8d7e0f2cc2e2738339f25365ba70b (diff)
sisyphus-cli : make branch switching syntax bit more pretty
Diffstat (limited to 'src/frontend/cli')
-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:]: