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,12 +931,8 @@ 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')
|
||||||
except getopt.GetoptError:
|
|
||||||
if wxPlatform != '__WXMAC__': # macs have some extra parameters
|
|
||||||
print >> sys.stderr, 'Unknown option'
|
|
||||||
usage()
|
|
||||||
sys.exit(1)
|
|
||||||
for o,a in opts:
|
for o,a in opts:
|
||||||
if o == '-h':
|
if o == '-h':
|
||||||
usage()
|
usage()
|
||||||
@@ -947,6 +943,12 @@ class App(wxApp):
|
|||||||
print 'XRCed version', version
|
print 'XRCed version', version
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
except getopt.GetoptError:
|
||||||
|
if wxPlatform != '__WXMAC__': # macs have some extra parameters
|
||||||
|
print >> sys.stderr, 'Unknown option'
|
||||||
|
usage()
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
self.SetAppName('xrced')
|
self.SetAppName('xrced')
|
||||||
# Settings
|
# Settings
|
||||||
global conf
|
global conf
|
||||||
|
Reference in New Issue
Block a user