-
Notifications
You must be signed in to change notification settings - Fork 256
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
How to behave like ls? #81
Comments
If you know the number of "file" arguments, then you can use specify But if you need NOTE: Remember to place all optional arguments BEFORE the remaining argument. If the optional argument is placed after the remaining arguments, it too will be deemed remaining: $ ./compiler foo.cpp bar.cpp baz.cpp -o main
5 arguments provided
foo.cpp
bar.cpp
baz.cpp
-o
main I'll keep this issue open as it is worth looking into this to see if it is feasible in the current implementation. |
@samhocevar There's a new release of argparse that will support this feature request. Hope this helps. Regards, |
Thanks for taking the time to let me know. I ended up not using argparse but it seemed pretty clean at the time, so I think I will evaluate it again. |
The GNU
ls
utility allows its flags to be provided anywhere in the commandline, e.g.:If I understand correctly,
.remaining();
does not allow that. Is there a workaround for this or another way to do it?The text was updated successfully, but these errors were encountered: