1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-11-19 06:31:08 +00:00

Rename to usage() to _usage()

This commit is contained in:
Mike Naberezny 2012-01-04 21:22:56 -08:00
parent cf8d0ab394
commit 7603c84e38

View File

@ -51,8 +51,8 @@ class Monitor(cmd.Cmd):
['help', 'mpu=', 'load=', 'rom=', 'goto=']) ['help', 'mpu=', 'load=', 'rom=', 'goto='])
except getopt.GetoptError, err: except getopt.GetoptError, err:
self._output(str(err)) self._output(str(err))
self.usage() self._usage()
self._exit() self._exit(1)
for opt, value in options: for opt, value in options:
if opt in ('-l','--load'): if opt in ('-l','--load'):
@ -74,10 +74,10 @@ class Monitor(cmd.Cmd):
sys.exit(1) sys.exit(1)
self.do_mpu(value) self.do_mpu(value)
elif opt in ("-h", "--help"): elif opt in ("-h", "--help"):
self.usage() self._usage()
self._exit() self._exit(1)
def usage(self): def _usage(self):
usage = __doc__ % sys.argv[0] usage = __doc__ % sys.argv[0]
self._output(usage) self._output(usage)