I would love something that could do the reverse.
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.
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.