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

Bizarre restrictions on argument order for "autolab submit" #27

Open
zackw opened this issue Feb 8, 2023 · 1 comment
Open

Bizarre restrictions on argument order for "autolab submit" #27

zackw opened this issue Feb 8, 2023 · 1 comment

Comments

@zackw
Copy link

zackw commented Feb 8, 2023

$ autolab submit -f 15213-s23:attacklab test.txt
fatal: Invalid command line argument 'test.txt'.
Note that all options must come after all positional arguments (e.g. commands).
For detailed usage, run with '-h'.

This is an extremely strange thing for a Unix command line utility to insist on. I've been mucking around with Unix for 35 years and the only other examples I can think of are find (where the stuff that comes after the positional arguments is more accurately described as an expression in a mini-language, not options) and ld (where everyone agrees that it sucks that you have to put the -l options at the end of the link line).

Please change this to be more normal, by which I mean "options can appear in any order and in any position relative to the positional parameters." It's OK if "submit" has to come before options that are specific to the submit subcommand, but I should be allowed to do what I did in the example at the top.

@KesterTan
Copy link

Thanks for raising this issue, we'll take a look at it and make changes.

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

No branches or pull requests

3 participants