datalad / datalad

Keep code, data, containers under control with git and git-annex

Home Page:http://datalad.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1-letter shortcut for `--reobtain-data` in datalad-update

mlell opened this issue · comments

What is the problem?

I have an analysis that is grouped into multiple datalad datasets, where "downstream" datasets use the results from "upstream" analyses. If I am fixing things in the upstream datasets and re-run the downstream analyses, I find myself typing frequently

cd input/upstream1
datalad update --how=ff-only --reobtain-data

It would be so much nicer if I was just

datalad update --how=ff-only -o

That's ~1/3 less command size

I know, its not a large problem, I can write helper scripts, etc., but I frequently find this papercut so I figured I will just report it. If you do not like it, I write my alias, no problem

What steps will reproduce the problem?

No response

DataLad information

No response

Additional context

No response

Have you had any success using DataLad before?

No response

I don't mind but it should not be -o since that is very commonly for --output even if not in datalad context. So should be something else, but -r, -R and -d are taken.... could be -D I guess or -g to be reminiscent of --get-data of install.

Longer shot, we could introduce a convention for abbreviating based on leading letters, such as --r-d for --reobtain-data and --f-a for --fetch-all