@cli.command(short_help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', '<STR_LIT:f>',<EOL>type=click.Path(dir_okay=False, writable=True))<EOL>@click.pass_context<EOL>def autofill(ctx, f):
auto_fill_days = ctx.obj['<STR_LIT>']['<STR_LIT>']<EOL>if not auto_fill_days:<EOL><INDENT>ctx.obj['<STR_LIT>'].view.err("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>return<EOL><DEDENT>today = datetime.date.today()<EOL>last_day = calendar.monthrange(today.year, today.month)<EOL>last_date = datetime.date(today.year, today.month, last_day[<NUM_LIT:1>])<EOL>timesheet_collection = get_timesheet_collection_for_context(<EOL>ctx, f<EOL>)<EOL>t = timesheet_collection.latest()<EOL>t.prefill(auto_fill_days, last_date)<EOL>t.save()<EOL>ctx.obj['<STR_LIT>'].msg("<STR_LIT>")<EOL>
Fills your timesheet up to today, for the defined auto_fill_days.