Permalink
Browse files

Show help by 'cask exec'(no command arguments) (#375)

  • Loading branch information...
1 parent 58f6419 commit 0a2e8436e02af6ca688b25ba90a19505a6113296 @syohex syohex committed with lunaryorn Nov 20, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/cask
View
@@ -385,7 +385,10 @@ def main():
sys.version_info))
## TODO: replace with a command line parser!
if len(sys.argv) > 1 and sys.argv[1] == 'exec':
- exec_command(sys.argv[2:])
+ if len(sys.argv) == 2:
+ exec_cask(['help'])
+ else:
+ exec_command(sys.argv[2:])
elif len(sys.argv) > 1 and sys.argv[1] == 'emacs':
exec_emacs(sys.argv[2:])
else:

0 comments on commit 0a2e843

Please sign in to comment.