Skip to content

Commit 01815be

Browse files
committed
enh: expose arguments in cli templateflow update
1 parent 512773a commit 01815be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templateflow/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,15 @@ def wipe():
115115

116116

117117
@main.command()
118-
def update():
118+
@click.option('--local', is_flag=True)
119+
@click.option('--overwrite/--no-overwrite', default=True)
120+
def update(local, overwrite):
119121
"""Update the local TemplateFlow Archive."""
120122
from templateflow.conf import update as _update
121123

122124
click.echo(
123125
f'Successfully updated local TemplateFlow Archive: {TF_HOME}.'
124-
if _update()
126+
if _update(local=local, overwrite=overwrite)
125127
else 'TemplateFlow Archive not updated.'
126128
)
127129

0 commit comments

Comments
 (0)