From 4acd6c57bb9cc42684e97798a54d1d2c65f2cd45 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 14 Nov 2012 19:26:15 +0000 Subject: Add autoupdate and autoremove options to the script --- (limited to 'commands') 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) -- cgit v0.9.1