changeset 9:8c8a223e4df2

begin to read config file
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 04 Dec 2012 15:13:26 -0800
parents 7423fa8b4343
children f0bca08e296a
files mozillatry.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mozillatry.py	Tue Dec 04 14:33:04 2012 -0800
+++ b/mozillatry.py	Tue Dec 04 15:13:26 2012 -0800
@@ -73,7 +73,11 @@
 
 class MozillaTryConfiguration(configuration.Configuration):
 
+    default_config_file = os.path.join('~', '.mozutils.yaml')
     usage = '%prog [options] patch <patch2> <...>'
+    load_help = 'load from config file'
+    if os.path.exists(os.path.expanduser(default_config_file)):
+        usage += ' [DEFAULT: %s]' % default_config_file
     options = {'opt': {'default': True,
                        'help': "whether to try on opt builds"},
                'debug': {'default': True,