Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1-letter shortcut for --reobtain-data in datalad-update #7569

Open
mlell opened this issue Mar 7, 2024 · 1 comment
Open

1-letter shortcut for --reobtain-data in datalad-update #7569

mlell opened this issue Mar 7, 2024 · 1 comment

Comments

@mlell
Copy link

mlell commented Mar 7, 2024

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

@yarikoptic
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants