diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-14 19:26:15 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-14 19:26:15 (GMT) |
commit | 4acd6c57bb9cc42684e97798a54d1d2c65f2cd45 (patch) | |
tree | b3b08e58ff09d4d03fa7088366a3f77271f6ff9b /commands | |
parent | f224c82c3dc67cedc81607a4e915e23c1c64bab4 (diff) |
Add autoupdate and autoremove options to the script
Diffstat (limited to 'commands')
-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) |