diff options
Diffstat (limited to 'commands/check-system')
-rwxr-xr-x | commands/check-system | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/commands/check-system b/commands/check-system index aca432f..ef559b1 100755 --- a/commands/check-system +++ b/commands/check-system @@ -1,8 +1,18 @@ #!/usr/bin/python +import argparse + import common from devbot import system common.setup() -system.check() + +parser = argparse.ArgumentParser(description='Check the system') +parser.add_argument("--autoupdate", action="store_true", + help="first of all update the system") +parser.add_argument("--autoremove", action="store_true", + help="remove all the unnecessary packages") +args = parser.parse_args() + +system.check(autoupdate=args.autoupdate, autoremove=args.autoremove) |