Minimum Required Changes¶
Cmd.cmd from the standard library, and overrides
most of the methods. Most apps based on the standard library can be migrated to
cmd2 in just a couple of minutes.
Import and Inheritance¶
You need to change your import from this:
Then you need to change your class definition from:
Have a look at the commands you created to exit your application. You probably
have one called
exit and maybe a similar one called
quit. You also
might have implemented a
do_EOF() method so your program exits like many
operating system shells. If all these commands do is quit the application,
you may be able to remove them. See Exiting.