Skip to content

Commit

Permalink
make khal new work
Browse files Browse the repository at this point in the history
  • Loading branch information
geier committed Sep 8, 2014
1 parent f5377d3 commit 4ec10ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions khal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def _calendar_select_callback(ctx, option, calendars):
else:
raise ValueError(mode)


def calendar_selector(f):
a = click.option('--include-calendar', '-a', multiple=True, metavar='CAL',
expose_value=False, callback=_calendar_select_callback,
Expand Down Expand Up @@ -177,13 +178,13 @@ def agenda(ctx, days, events, dates):
@cli.command()
@click.option('--include-calendar', '-a', help=('The calendar to use.'),
expose_value=False, callback=_calendar_select_callback)
@click.argument('description')
@click.argument('description', nargs=-1)
@click.pass_context
def new(ctx, description):
controllers.NewFromString(
build_collection(ctx),
ctx.obj['conf'],
description.split()
list(description)
)

@cli.command()
Expand Down

0 comments on commit 4ec10ec

Please sign in to comment.