usage = '%prog [options]'
parser = optparse.OptionParser(usage=usage, version='%prog 0.1')
parser.add_option(
- '--distribution',
- dest='distribution',
- choices = ['stable', 'production', 'production-proposed-updates', 'unstable', 'pre-staging', 'staging', 'experimental'],
- default='unstable',
- help='The pkg distribution. Default: %default'
+ '--distribution',
+ dest='distribution',
+ choices = [
+ 'stable',
+ 'production',
+ 'production-proposed-updates',
+ 'unstable',
+ 'pre-staging',
+ 'staging',
+ 'experimental'
+ ],
+ default='unstable',
+ help='The pkg distribution. Default: %default'
+ )
+ parser.add_option(
+ '--loglevel',
+ dest='loglevel',
+ choices = [
+ 'DEBUG',
+ 'INFO',
+ 'WARN',
+ 'WARNING',
+ 'ERROR',
+ 'CRITICAL'
+ ],
+ default='INFO',
+ help='Loglevel. Default: %default'
)
return parser.parse_args()