Tweak the style a little just to be consistent

This commit is contained in:
Stephen Boddy 2013-08-27 13:37:09 +02:00
parent c566e862f7
commit bd3c5ca52a
1 changed files with 4 additions and 6 deletions

View File

@ -42,7 +42,7 @@ def parse_options():
"""Parse the command line options""" """Parse the command line options"""
usage = "usage: %prog [options]" usage = "usage: %prog [options]"
is_X_terminal_emulator = os.path.basename(sys.argv[0]) == 'x-terminal-emulator' is_x_terminal_emulator = os.path.basename(sys.argv[0]) == 'x-terminal-emulator'
parser = OptionParser(usage) parser = OptionParser(usage)
@ -61,8 +61,7 @@ def parse_options():
parser.add_option('--geometry', dest='geometry', type='string', parser.add_option('--geometry', dest='geometry', type='string',
help=_('Set the preferred size and position of the window' help=_('Set the preferred size and position of the window'
'(see X man page)')) '(see X man page)'))
if not is_x_terminal_emulator:
if not is_X_terminal_emulator :
parser.add_option('-e', '--command', dest='command', parser.add_option('-e', '--command', dest='command',
help=_('Specify a command to execute inside the terminal')) help=_('Specify a command to execute inside the terminal'))
else: else:
@ -72,7 +71,6 @@ def parse_options():
callback=execute_cb, callback=execute_cb,
help=_('Use the rest of the command line as a command to ' help=_('Use the rest of the command line as a command to '
'execute inside the terminal, and its arguments')) 'execute inside the terminal, and its arguments'))
parser.add_option('-g', '--config', dest='config', parser.add_option('-g', '--config', dest='config',
help=_('Specify a config file')) help=_('Specify a config file'))
parser.add_option('-x', '--execute', dest='execute', action='callback', parser.add_option('-x', '--execute', dest='execute', action='callback',