Fixes #602 Allowing help $cmd with no figfile

Signed-off-by: Michael A. Smith <michael@smith-li.com>
This commit is contained in:
Michael A. Smith 2014-11-01 19:22:22 -04:00
commit 782a46fd60
3 changed files with 15 additions and 0 deletions

View file

@ -42,6 +42,11 @@ class Command(DocoptCommand):
raise errors.ConnectionErrorGeneric(self.get_client().base_url)
def perform_command(self, options, handler, command_options):
if options['COMMAND'] == 'help':
# Skip looking up the figfile.
handler(None, command_options)
return
explicit_config_path = options.get('--file') or os.environ.get('FIG_FILE')
project = self.get_project(
self.get_config_path(explicit_config_path),