mirror of
https://github.com/mnaberez/py65.git
synced 2025-04-05 13:37:09 +00:00
Rename to usage() to _usage()
This commit is contained in:
parent
cf8d0ab394
commit
7603c84e38
@ -51,8 +51,8 @@ class Monitor(cmd.Cmd):
|
||||
['help', 'mpu=', 'load=', 'rom=', 'goto='])
|
||||
except getopt.GetoptError, err:
|
||||
self._output(str(err))
|
||||
self.usage()
|
||||
self._exit()
|
||||
self._usage()
|
||||
self._exit(1)
|
||||
|
||||
for opt, value in options:
|
||||
if opt in ('-l','--load'):
|
||||
@ -74,10 +74,10 @@ class Monitor(cmd.Cmd):
|
||||
sys.exit(1)
|
||||
self.do_mpu(value)
|
||||
elif opt in ("-h", "--help"):
|
||||
self.usage()
|
||||
self._exit()
|
||||
self._usage()
|
||||
self._exit(1)
|
||||
|
||||
def usage(self):
|
||||
def _usage(self):
|
||||
usage = __doc__ % sys.argv[0]
|
||||
self._output(usage)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user