Skip to content

Commit ba6e7f5

Browse files
committed
fix prompt
1 parent 41f7f15 commit ba6e7f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dataherb/command.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,19 +358,19 @@ def download(id, flora, workdir):
358358
"Specify the path to the flora; " "defaults to default flora in configuration."
359359
),
360360
)
361-
def create(path, flora):
361+
def create(ctx, path, flora):
362362
"""
363363
creates metadata for current dataset
364364
365365
:param flora: the path to the flora file. If not given,
366366
will use the default flora in the configuration.
367367
"""
368-
if not click.confirm(
368+
click.prompt(
369369
f"Working directory: {path}\n"
370370
f"A dataherb.json file will be created in {path}.\n"
371-
"Are you sure this is the correct path?"
372-
):
373-
click.echo("Abort!")
371+
"Are you sure this is the correct path?",
372+
confirmation_prompt=True,
373+
)
374374

375375
if flora is None:
376376
c = Config()

0 commit comments

Comments
 (0)