I've made both such a HORRIBLE and AWESOME prototype in python, it's call "py2sh", you give it whatever python file and it will allow you to call every function of this file directly from the cli will allowing you to parse arguments.
This is like a python-shell bridge :p
(and I have way worst ideas for that)
Oh and it's only 32 lines of #python code x)
@bram That sounds really neat! Especially the fact that it's so short.
Count me curious!
@HerraBRE here you go :) https://github.com/Psycojoker/py2sh/blob/master/py2sh
All the heavy job is done by argh, it's a bit like "how you shouldn't have used argh" kind of project :p
@bram Now I need to go learn about argh. Thanks!
@bram ah oui Xonsh ^^
@melunaka spa vraiment le même genre de projet x)
@bram looks like magic!
@xiroux it's just missusing a cool lib x)
Can't wait to see these 32 lines!
@alfajet here you go :) https://github.com/Psycojoker/py2sh/blob/master/py2sh
@bram neat 👍
@josue no, I haven't spend a lot of time on this getopt thing but I had the feeling that this could be useful for YunoHost yes (while not really wanting it, it's dirty)