This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
api:shell [2016/07/04 17:39] payonel [Shell API] |
api:shell [2018/03/02 10:35] jayjader [Shell API] Period -> Comma in last `shell.parse()` example result |
||
---|---|---|---|
Line 53: | Line 53: | ||
# `ops` is `{a=true,b=true,C=true,dog="foo"}`. | # `ops` is `{a=true,b=true,C=true,dog="foo"}`. | ||
- | On this next example, notice the single dash before d, this causes all of the token to be parsed as single chars | + | On this next example, notice the single dash before `dog`, this causes all of the token to be parsed as single chars. |
- | `program -abC -d=foo arg1 arg2` | + | `program -abC -dog=foo arg1 arg2` |
# `args` is `{"arg1", "arg2"}` | # `args` is `{"arg1", "arg2"}` | ||
- | # `ops` is `{a=true,b=true,C=true,d=true,g=true,["="]=true,f=true.o=true}`. | + | # `ops` is `{a=true,b=true,C=true,d=true,g=true,["="]=true,f=true,o=true}`. |