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

support positional args #1

Open
hexylena opened this issue Jan 11, 2015 · 1 comment
Open

support positional args #1

hexylena opened this issue Jan 11, 2015 · 1 comment

Comments

@hexylena
Copy link
Owner

maybe use generated names or ... ?

@fubar2
Copy link
Contributor

fubar2 commented Aug 7, 2020

For positional parameters, the entire tool command line must be formed in a specific order.

PR will follow shortly with a command_line_override option in the tool to work around this for a project where it matters until a better fix.

Fixing this properly is more involved so before I try, here's some reasoning:

"positional" is usually a characteristic of a complete set of CL parameters associated with a particular tool
Seems redundant at the individual parameter level.

Only input and output params can have position? None of the complex repeats/conditionals are predictable enough for a positional tool CL.

Each parameter in a positional CL has an ordinal position. Add a unique integer "position", defaulting to None to the constructors. Check them if the positional attribute of the tool is true, so the final tool CL can be generated in the correct order. At export for a positional command line, the (current) list of cli from outputs and inputs need to be ordered by a (new) list of the ordinals.

I can work around this for now but could try to implement something like this if it won't break much else

hexylena pushed a commit that referenced this issue Aug 31, 2020
hexylena pushed a commit that referenced this issue Apr 7, 2021
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