Mercurial > hg > autobot
diff autobot/template.py @ 74:d94fbaac7c2c
stub out being able to find scripts cross-platform in a virtualenv
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 11 Jan 2011 15:04:31 -0800 |
parents | d033843da35a |
children | 2616a5f49bd3 |
line wrap: on
line diff
--- a/autobot/template.py Tue Jan 11 14:23:39 2011 -0800 +++ b/autobot/template.py Tue Jan 11 15:04:31 2011 -0800 @@ -119,7 +119,7 @@ parser = MakeItSoCLI.parser(self) parser.add_option('-f', '--factory', dest='factories', default=[], action='append', - help="factory to use") + help="factory to use ('--factory -' for all)") parser.add_option('--list-factories', dest='_list_factories', default=False, action='store_true', help="list available factories") @@ -137,6 +137,10 @@ print print_descriptions() parser.exit() + # check for all factories + if options.factories == ['-']: + options.factories = factories.keys() + # call the parent return MakeItSoCLI.parse(self, args, parser, options)