> On Sep 21, 6:59 pm, abhishek bhat <wimpybob...@gmail.com> wrote:
>> Can I use argparse inside each cmd implementation to parse the options
>> for that command?
I've never used the cmd module, so I can't help much here.
>> Also the way it is, the automatic usage message refers to the .py and
>> not to the cmd (right in the def below). Can that be changed?
Yep, just specify ArgumentParser(prog="right")
>> And this is cmd question but if somebody knows can they suggest how to
>> come up with a more sophisticated shell that is have features like
>> command completion, etc.
You might look at what IPython does - they have a pretty sophisticated
shell, and argparse is integrated in there somehow:
Steve
--
Where did you get that preposterous hypothesis?
Did Steve tell you that?
--- The Hiphopopotamus