Skip to content

Commit

Permalink
Add example for directory
Browse files Browse the repository at this point in the history
Co-authored-by: Yaroslav Halchenko <[email protected]>
  • Loading branch information
asmacdo and yarikoptic committed May 1, 2024
1 parent 3afd99b commit 58c7c4c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions dandi/cli/cmd_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,23 @@
from ..utils import get_instance, joinurl

_examples = """
EXAMPLES: \n
# Download only the dandiset.yaml \n
dandi download --download dandiset.yaml DANDI:000027 \n
EXAMPLES:\n
# Download only the dandiset.yaml\n
dandi download --download dandiset.yaml DANDI:000027\n
# Download only dandiset.yaml if there is a newer version \n
# Download only dandiset.yaml if there is a newer version\n
dandi download https://identifiers.org/DANDI:000027 --existing refresh
# Download only the assets \n
# Download only the assets\n
dandi download --download assets DANDI:000027
# Download all from a specific version \n
# Download all from a specific version\n
dandi download DANDI:000027/0.210831.2033
# Download a specific file or directory \n
# Download a specific directory\n
dandi download dandi://DANDI/[email protected]/sub-RAT123/
# Download a specific file\n
dandi download dandi://DANDI/[email protected]/sub-RAT123/sub-RAT123.nwb
"""

Expand Down

0 comments on commit 58c7c4c

Please sign in to comment.