Skip to content

Commit

Permalink
Missing namespace should show full help
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncoulton committed Oct 1, 2014
1 parent 2bd33de commit 7623946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion watson/console/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
__version__ = '2.0.0'
__version__ = '2.0.1'

try:
# Fix for setup.py version import
Expand Down
2 changes: 1 addition & 1 deletion watson/console/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def attach_commands(self, parser, namespace):
description=command_help,
help=command_help)
self.update_usage(parser, namespace)
if not namespace:
if not namespace or namespace not in namespaces:
# Override the default output from argparse to display all the
# namespaces and their commands.
parser.print_usage()
Expand Down

0 comments on commit 7623946

Please sign in to comment.