Ignore the args and args errors on Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -931,21 +931,23 @@ class App(wxApp):
|
|||||||
global debug
|
global debug
|
||||||
# Process comand-line
|
# Process comand-line
|
||||||
try:
|
try:
|
||||||
|
opts = args = None
|
||||||
opts, args = getopt.getopt(sys.argv[1:], 'dhiv')
|
opts, args = getopt.getopt(sys.argv[1:], 'dhiv')
|
||||||
|
for o,a in opts:
|
||||||
|
if o == '-h':
|
||||||
|
usage()
|
||||||
|
sys.exit(0)
|
||||||
|
elif o == '-d':
|
||||||
|
debug = True
|
||||||
|
elif o == '-v':
|
||||||
|
print 'XRCed version', version
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
except getopt.GetoptError:
|
except getopt.GetoptError:
|
||||||
if wxPlatform != '__WXMAC__': # macs have some extra parameters
|
if wxPlatform != '__WXMAC__': # macs have some extra parameters
|
||||||
print >> sys.stderr, 'Unknown option'
|
print >> sys.stderr, 'Unknown option'
|
||||||
usage()
|
usage()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
for o,a in opts:
|
|
||||||
if o == '-h':
|
|
||||||
usage()
|
|
||||||
sys.exit(0)
|
|
||||||
elif o == '-d':
|
|
||||||
debug = True
|
|
||||||
elif o == '-v':
|
|
||||||
print 'XRCed version', version
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
self.SetAppName('xrced')
|
self.SetAppName('xrced')
|
||||||
# Settings
|
# Settings
|
||||||
|
Reference in New Issue
Block a user