@@ -183,10 +183,19 @@ def parse_arguments(progname='requake'):
183
183
type = float , default = None ,
184
184
help = 'maximum cross-correlation coefficient (default: %(default)s)'
185
185
)
186
+ # --- traceid
187
+ # a parent parser for the "traceid" option,
188
+ # used by several subparsers
189
+ traceid = argparse .ArgumentParser (add_help = False )
190
+ traceid .add_argument (
191
+ '-t' , '--traceid' , type = str , default = None ,
192
+ help = 'use this traceid instead of the one set in the config file'
193
+ )
186
194
# ---
187
195
# --- plot_pair
188
196
plot_pair = subparser .add_parser (
189
197
'plot_pair' ,
198
+ parents = [traceid ],
190
199
help = 'plot traces for a given event pair'
191
200
)
192
201
plot_pair .add_argument ('evid1' )
@@ -286,14 +295,6 @@ def parse_arguments(progname='requake'):
286
295
'expressed in years. Also note that this option is ignored if '
287
296
'the -c/--colorby option is set to "family_number".'
288
297
)
289
- # --- traceid
290
- # a parent parser for the "traceid" option,
291
- # used by several subparsers
292
- traceid = argparse .ArgumentParser (add_help = False )
293
- traceid .add_argument (
294
- '-t' , '--traceid' , type = str , default = None ,
295
- help = 'use this traceid instead of the default one for the family'
296
- )
297
298
# ---
298
299
# --- print_families
299
300
subparser .add_parser (
0 commit comments