Re:Gooey: Turn almost any Python command line program into a...
by SOLAR_FIELDS on Saturday December 09, 2023 @06:02PM
(#38587056)
A WYSIWYG editor that spits out a CLI you mean? That would pretty neat, though I think would necessarily be kind of constrained. I wonder who has tried that approach, I can't think of any examples
[ Parent
| on HN ]
Re:Gooey: Turn almost any Python command line program into a...
by andy99 on Saturday December 09, 2023 @06:31PM
(#38587316)
Actually, something like a "zotero for argparse" would be cool. Where you enter arguments, their type, help string, defaults etc in a gui and then you can check the ones you need for a given python script and copy the relevant python code into your paste buffer.
I don't think it would be a massive time saver however what I usually do now is find some previous script that had similar arguments and copy them, and then copy-paste-edit to add new arguments.
The other advantage is you could enter the arguments agnostically and export as whatever language you're working in.
Re:Gooey: Turn almost any Python command line program into a...
by exe34 on Saturday December 09, 2023 @07:00PM
(#38587533)
http://docopt.org/
Not quite what you asked for, but close: type example invocations to generate the CLI, and just pull the arguments from a dictionary at runtime.