From 13ff8dbb0579f9b43ef4101e838f3f49dc5be042 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 9 Nov 2007 00:23:26 -0500 Subject: [PATCH] Actually make new command line option work --- terminator | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terminator b/terminator index b9ce2d66..974fc5d3 100755 --- a/terminator +++ b/terminator @@ -535,8 +535,8 @@ def usage (): Usage: terminator [OPTION]... -h, --help Show this usage information -d, --debug Enable debugging - -p, --profile=PROFILE Take settings from gnome-terminal profile PROFILE -m, --maximise Maximise the terminator window when it starts + -p, --profile=PROFILE Take settings from gnome-terminal profile PROFILE """ if __name__ == '__main__': @@ -545,7 +545,7 @@ if __name__ == '__main__': maximise = False try: - opts, args = getopt.getopt (sys.argv[1:], "hdp:", ["help", "debug", "profile="]) + opts, args = getopt.getopt (sys.argv[1:], "hdmp:", ["help", "debug", "maximise", "profile="]) except getopt.GetoptError: usage () sys.exit (2) @@ -556,10 +556,10 @@ if __name__ == '__main__': sys.exit (0) if opt in ("-d", "--debug"): debug = 1 - if opt in ("-p", "--profile"): - profile = arg if opt in ("-m", "--maximise"): maximise = True + if opt in ("-p", "--profile"): + profile = arg term = Terminator (profile, maximise) gtk.main ()