Posts: 4,570
Threads: 1,469
Joined: Sep 2016
for a command that will use command line arguments like key=value for all arguments, is there an available parser?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,570
Threads: 1,469
Joined: Sep 2016
i don't see anything in
argparse
for key=value type arguments. i know C's
getopt()
doesn't do them.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,570
Threads: 1,469
Joined: Sep 2016
i did not see anything about key=value arguments in that module, either.
this is one of the many cases where i am limited to whatever is on the host when the distro is installed. my command scripts need to work without installing anything more. things only i use can have other stuff.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,570
Threads: 1,469
Joined: Sep 2016
i don't mean option assignment. instead of --opt=value leave off the -- and do key=value.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.