Skip to content

Commit

Permalink
Add workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Aug 21, 2014
1 parent 7bea3b3 commit 3cde457
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion khal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ def cli(ctx, config, verbose, include_calendar, exclude_calendar):
))
collection._default_calendar_name = conf['default']['default_calendar']

if not ctx.invoked_subcommand:
# Workaround for https://github.com/mitsuhiko/click/issues/205
if not ctx.args:
command = conf['default']['default_command']
if command:
ctx.invoke(cli.commands[command])
Expand Down

0 comments on commit 3cde457

Please sign in to comment.