From 4ec10ece492ad3490a789ed52c66443bdf3e16a7 Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Mon, 8 Sep 2014 23:27:49 +0200 Subject: [PATCH] make khal new work --- khal/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/khal/cli.py b/khal/cli.py index 90a402010..78c36d4e6 100644 --- a/khal/cli.py +++ b/khal/cli.py @@ -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, @@ -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()