Developing a new command line interface

Hi,
Is there any good/easy tool or library which assists in developing a
command line interface for an application. The CLI should be able
to provide custom commands, allow programming/scripting as well.
For the latter case it could wrap a shell command and send it to BASH
for processing.

That depends entirely on the application and what language you use to write the application.

I found 2 ways that may help in doing so..
CLISH project on sourceforge and cmd module in python.
CLISH doesnot seem to compile on my fedora machine till
now...And i dont even know how difficult/easy would it
be to use cmd module in python.