Replies: 4 comments
-
I don't remind on top of my mind if there is a configuration option for that. But keep in mind that the rule to have options at the end is important to be able to invoke a thor script from another one. |
Beta Was this translation helpful? Give feedback.
-
Why is that? Can you give me an example? |
Beta Was this translation helpful? Give feedback.
-
This is surprising behavior to me as well. Love to see it change to allow an option before the command arguments |
Beta Was this translation helpful? Give feedback.
-
Still planning to write a patch for this, just want to understand the current behavior better first to make sure I don't inadvertently break something. |
Beta Was this translation helpful? Give feedback.
-
I'm noticing in using thor that it sees to be pretty rigid about option/flag locations and argument locations. For example:
Since a lot of unix CLI tools expect flags first, this may be confusing for users. Is there an existing way to modify this behavior? If not I'd be happy to contribute a patch for additional parsing to allow more flexibility in flag/argument locations.
Beta Was this translation helpful? Give feedback.
All reactions