-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slight tune up to formatting of examples etc to harmonize appearance/…
…make shorter Original --help is too long and a little more inconsistent -- the "#" are shell script construct and generally not used to demarkate anything there, so kind no point to have/look odd
- Loading branch information
1 parent
260b4d7
commit b477d41
Showing
2 changed files
with
27 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,24 +12,26 @@ | |
from ..utils import get_instance, joinurl | ||
|
||
_examples = """ | ||
EXAMPLES:\n | ||
# Download only the dandiset.yaml\n | ||
dandi download --download dandiset.yaml DANDI:000027\n | ||
EXAMPLES: | ||
# 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 | ||
dandi download --download assets DANDI:000027 | ||
# Download all from a specific version\n | ||
dandi download DANDI:000027/0.210831.2033 | ||
# 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 | ||
\b | ||
- Download only the dandiset.yaml | ||
dandi download --download dandiset.yaml DANDI:000027 | ||
\b | ||
- Download only dandiset.yaml if there is a newer version | ||
dandi download https://identifiers.org/DANDI:000027 --existing refresh | ||
\b | ||
- Download only the assets | ||
dandi download --download assets DANDI:000027 | ||
\b | ||
- Download all from a specific version | ||
dandi download DANDI:000027/0.210831.2033 | ||
\b | ||
- Download a specific directory | ||
dandi download dandi://DANDI/[email protected]/sub-RAT123/ | ||
\b | ||
- Download a specific file | ||
dandi download dandi://DANDI/[email protected]/sub-RAT123/sub-RAT123.nwb | ||
""" | ||
|
||
|
||
|
@@ -45,7 +47,6 @@ | |
\b | ||
{_dandi_url_parser.known_patterns} | ||
\b | ||
{_examples} | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters