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

flux-run: poor error message on bad input #6643

Open
chu11 opened this issue Feb 14, 2025 · 1 comment
Open

flux-run: poor error message on bad input #6643

chu11 opened this issue Feb 14, 2025 · 1 comment

Comments

@chu11
Copy link
Member

chu11 commented Feb 14, 2025

Recently had a typo in a test script that took me awhile to chase down.

>flux run --dry-run --setattr=exec.test.run_duration=0.1s "hostname"

works of course, but I screwed up quoting and accidentally did

>flux run --dry-run "--setattr=exec.test.run_duration=0.1s hostname" 
flux-run: ERROR: job command and arguments are missing

obviously job command isn't missing. I assume some parsing issue somewhere leading to this less than helpful error message

@grondo
Copy link
Contributor

grondo commented Feb 14, 2025

My guess is you're quoting of the entire --setattr option caused argparse to treat exec.test.run_duration=0.1s hostname as its entire argument, thus there was no "remainder" to represent the command and arguments.

I'm not sure we'll be able to fix this one.

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