~jordilin/terminator/terminator-bookmarks

« back to all changes in this revision

Viewing changes to terminatorlib/optionparse.py

  • Committer: Chris Jones
  • Date: 2010-05-15 13:51:20 UTC
  • Revision ID: cmsj@tenshu.net-20100515135120-5vmtdyafpdpra77i
Restore the command line -p option to specify a particular profile. This is then enforced as the default for new terminals

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    parser.add_option('-r', '--role', dest='role', help='Set a custom \
67
67
WM_WINDOW_ROLE property on the window')
68
68
    parser.add_option('-l', '--layout', dest='layout', help='Select a layout')
 
69
    parser.add_option('-p', '--profile', dest='profile', help='Use a \
 
70
different profile as the default')
69
71
    parser.add_option('-d', '--debug', action='count', dest='debug',
70
72
            help='Enable debugging information (twice for debug server)')
71
73
    parser.add_option('--debug-classes', action='store', dest='debug_classes', 
73
75
    parser.add_option('--debug-methods', action='store', dest='debug_methods',
74
76
            help='Comma separated list of methods to limit debugging to')
75
77
    for item in ['--sm-client-id', '--sm-config-prefix', '--screen', '-n',
76
 
    '--no-gconf', '-p', '--profile' ]:
 
78
    '--no-gconf' ]:
77
79
        parser.add_option(item, dest='dummy', action='store',
78
80
                help=SUPPRESS_HELP)
79
81
 
113
115
    if options.layout is None:
114
116
        options.layout = 'default'
115
117
 
 
118
    if options.profile and options.profile not in configobj.list_profiles():
 
119
        options.profile = None
 
120
 
116
121
    configobj.options_set(options)
117
122
 
118
123
    if util.DEBUG == True: