Replies: 1 comment
-
I also noticed another strange behavior:
Why is it parsed and the comma removed if I pass a single argument within double braces (single braces make no difference)? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, congratulations on the Shell. I greatly appreciate its architecture but need help understanding the command arguments parsing.
Consider this simple example:
Now if I execute:
But if I execute (as usual in UNIX environment):
It does not work.
Does it mean that options (preceded by keyword) shall necessarily follow arguments?
Also, defining the arity as 1000 to indicate 0 or more is unclear. I could use this by inspecting the code and noticing it would be mapped to 0 - 1000. Without being pretentious, I suggest defining some symbolic constants for the annotation (for example, ONE_OR_MORE = -2).
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions