U
Une bévue
on Mac OS X using launchd i'm only able to pass args like that :
["DEBUGG=true", "auto=true", "dummy=empty",
"files=/Users/yvon/MacSOUP_proxad/proxad,
/Users/yvon/MacSOUP_eclipse/eclipse,
/Users/yvon/MacSOUP_news.individual.net/individual"]
then for the time being i do :
@h={}
$*.each {|a| k,v=a.split("="); @h[k]=v}
and, afterwards :
@h['DEBUGG']=(@h['DEBUGG']=="true")
for bool, and for array :
@h['files']=@h['files'].split(", ")
i don't like that because i have to know, a priori, the types and names
of the args.
a better solution more rubyish ???
["DEBUGG=true", "auto=true", "dummy=empty",
"files=/Users/yvon/MacSOUP_proxad/proxad,
/Users/yvon/MacSOUP_eclipse/eclipse,
/Users/yvon/MacSOUP_news.individual.net/individual"]
then for the time being i do :
@h={}
$*.each {|a| k,v=a.split("="); @h[k]=v}
and, afterwards :
@h['DEBUGG']=(@h['DEBUGG']=="true")
for bool, and for array :
@h['files']=@h['files'].split(", ")
i don't like that because i have to know, a priori, the types and names
of the args.
a better solution more rubyish ???