http://anonscm.debian.org/cgit/bash-completion/bash-completi...
The gui could have labels with the command options, and upon hitting enter they could close and send the command back to the command line, so you're learning the commands as you go.
Once to create a TkInter GUI for an internal command line app, and once to wrap sg3_utils for use in Python scripts.
In general, I think it could "mostly work" a good portion of the time, but it'd be pretty difficult to get working 100% of the time without a lot of tweaking to the parser.
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_...
This is actually how Docopt happened (Vladimir Keleshev mentioned it in the PyCon UK 2012 talk).