Skip to content

Commit

Permalink
Fixed bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juti Noppornpitak committed May 6, 2016
1 parent 6d81ed6 commit 073ca39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions gallium/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,9 @@ def activate(self):
sys.exit(15)

# Parse arguments and execute.
try:
args = main_parser.parse_known_args()
except Exception as e:
print(type(e))
args, unknown_args = main_parser.parse_known_args()

if not hasattr(args, 'func'):
if not hasattr(args, 'func') or unknown_args:
if len(sys.argv) > 1 and sys.argv[1] in self.commands:
self.commands[sys.argv[1]]['parser'].print_help()
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import sys

version = '0.6.6'
version = '0.7.0'
primary_cmd = 'bin/gallium'
shortcut_cmd = 'bin/g{version}'.format(version = sys.version_info.major)
install_cmds = [primary_cmd]
Expand Down

0 comments on commit 073ca39

Please sign in to comment.