Permalink
Browse files

Merge pull request #74 from parkr/default-to-list

If no command name is specified, default to list.
  • Loading branch information...
2 parents 481dedd + f50a98e commit 2355e4b832ed67a7b33129e2f96cb780767c4971 @stephencelis committed Dec 8, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/ghi.rb
View
@@ -59,7 +59,11 @@ def execute args
abort option_parser.banner
end
- if command_name.nil? || command_name == 'help'
+ if command_name.nil?
+ command_name = "list"
+ end
+
+ if command_name == 'help'
Commands::Help.execute command_args, option_parser.banner
else
command_name = fetch_alias command_name, command_args

0 comments on commit 2355e4b

Please sign in to comment.