-
-
Notifications
You must be signed in to change notification settings - Fork 617
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
Processing additional cli arguments #80
Processing additional cli arguments #80
Conversation
What's the reason for the whitespace limitation? |
Commander that is used to parse command line attributes. It breaks them by spaces. There is though an alternative approach. At first I just pulled all remaining positional arguments in a dictionary. But that will require them to appear only in the end of the command and without
Also just checked that with |
Ok thanks, I'll take a look today at tweaking this a little to use the same parsing code that we use for annotation line parsing so we have exactly same behaviour in both |
moved to #82 |
I think @djbe added the ability to specify a flag multiple times in Stencil via a PR? |
No it was in Commander, and it was for repeating parameters like: I think a better command line syntax would be: |
Ah yeah of course I meant Commander ^^ |
Hm, didn't know about that option. @krzysztofzablocki should we use this feature instead of what we have implemented? |
I'm planning on adding this functionality into StencilSwiftKit, so we can unify this for both codebases. Something that receives an array of strings such as:
And converts it into a stencil context dictionary:
To which you could then add whatever variables your parser provides. |
I'm not entirely sure this isnt overkill |
Resolves #14