Commit 66828c81 authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

add usage text

parent f69b613d
#!/usr/bin/env python
# or ^ fslpython
#!/usr/bin/env fslpython
"""
usage: openneuro_dl [-h] [--savepath SAVEPATH] [--savename SAVENAME] [--w] id
download a dataset from openneuro.org
positional arguments:
id a dataset ID. Openneuro.org provides these in the form
of ds###### (e.g. ds002190)
optional arguments:
-h, --help show this help message and exit
--savepath SAVEPATH the output directory where you would like to download
the dataset (default is the current working directory)
--savename SAVENAME savename is an optional name to give the downloaded
dataset folder. The default is the dataset id.
--w re-sync existing dataset with the same ID if it
already exists in the savepath
"""
import argparse
from os.path import abspath, join, exists
from os import getcwd
......@@ -36,7 +52,7 @@ parser.add_argument(
# overwrite is a boolean flag and is optional. The default is false (no overwriting)
parser.add_argument(
'--w',
help="overwrite existing dataset with the same ID if it already exists in the savepath",
help="re-sync existing dataset with the same ID if it already exists in the savepath",
default=False,
action='store_true'
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment