From d12dd41845c16dbeae03290e26c66ab3586c98d7 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 23 Jan 2013 18:03:43 -0500 Subject: [PATCH] make the base handle optional config file --- pecan/commands/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pecan/commands/base.py b/pecan/commands/base.py index 811b424..68b5c0e 100644 --- a/pecan/commands/base.py +++ b/pecan/commands/base.py @@ -136,7 +136,9 @@ class BaseCommand(object): arguments = ({ 'name': 'config_file', - 'help': 'a Pecan configuration file' + 'help': 'a Pecan configuration file', + 'nargs': '?', + 'default': None, },) def run(self, args):