diff options
author | bionel <ionel.busuioc@gmail.com> | 2020-06-21 13:37:39 +0300 |
---|---|---|
committer | bionel <ionel.busuioc@gmail.com> | 2020-06-21 13:37:39 +0300 |
commit | 8b47ce46f1f9baf80bd09239871593b0028a0a62 (patch) | |
tree | e18fe8e4e6f2ac499d593925a13783bab3a2a9ae | |
parent | 38d5b810cb5e8400919e1d72c7d3806ee1156a23 (diff) |
make setjobs selective
-rwxr-xr-x | src/frontend/cli/sisyphus-cli.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py index 74cdb2f..53db6de 100755 --- a/src/frontend/cli/sisyphus-cli.py +++ b/src/frontend/cli/sisyphus-cli.py @@ -4,6 +4,7 @@ import sisyphus import typer from typing import List from enum import Enum +import sys app = typer.Typer() mirrorSetup = typer.Typer() @@ -194,6 +195,7 @@ def mirrorset(index: int): sisyphus.mirror.setActive(index) if __name__ == "__main__": - sisyphus.check.update() - sisyphus.setjobs.start.__wrapped__() # undecorate + if not '--help' in sys.argv: + sisyphus.check.update() + sisyphus.setjobs.start.__wrapped__() # undecorate app() |