Hello 9fans.

>There's aux/getflags. For example:
Thanks for the info.

Now, I reconsider:
(a) decomp should always end with error in illegal syntax.
currently
    echo :d -d | decomp
does not end with error. this should be a BUG, which is easy to fix.
(b) AWK is inappropriate for decomp. I will rewrite decomp in C.
then the usage in rc will be:
    * = `{decomp flg:opt $*}

Kenji Arisawa


On 2021/12/16 11:05, o...@eigenstate.org wrote:
Quoth 有澤 健治 <karis...@gmail.com>:
Maybe someone already have a tool of this sort,
or "decomp" may be improved to be better one,
or there are more bugs in it,
then information is welcome.
There's aux/getflags. For example:

flagfmt='d:debug, b:branch branch'; args='remote [local]'
eval `''{aux/getflags $*} || exec aux/usage
if(~ $debug 1)
        debug=(-d)


------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T0ceb5dd708ebfd4f-M831bb95d8a3575e0a983ba73
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to