remove unneeded 'add_opts' argument in opts.init() calls
This commit is contained in:
parent
9e8f625c9b
commit
0ac28869b3
9 changed files with 9 additions and 9 deletions
|
|
@ -124,7 +124,7 @@ FMT CODES:
|
|||
}
|
||||
}
|
||||
|
||||
cmd_args = opts.init(opts_data,add_opts=['b16'],opt_filter=opt_filter)
|
||||
cmd_args = opts.init(opts_data,opt_filter=opt_filter)
|
||||
|
||||
errmsg = f'{opt.type!r}: invalid parameter for --type option'
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ This command is currently available only on Linux-based platforms.
|
|||
|
||||
cmd_args = opts.init(
|
||||
opts_data,
|
||||
add_opts = ['mmgen_keys_from_file','hidden_incog_input_params'],
|
||||
add_opts = ['outdir','passwd_file'], # required, because in _set_ok
|
||||
init_opts = {
|
||||
'quiet': True,
|
||||
'out_fmt': 'wallet',
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ FMT CODES:
|
|||
}
|
||||
}
|
||||
|
||||
cmd_args = opts.init(opts_data,add_opts=['b16'])
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
||||
if len(cmd_args) < 2: opts.usage()
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ transaction reconfirmed before the timelock expires. Use at your own risk.
|
|||
}
|
||||
}
|
||||
|
||||
cmd_args = opts.init(opts_data,add_opts=['tx_fee','tx_fee_adj','comment_file'])
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
||||
from .protocol import init_proto_from_opts
|
||||
proto = init_proto_from_opts()
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ Type '{pn} help <command>' for help on a particular command
|
|||
}
|
||||
}
|
||||
|
||||
cmd_args = opts.init(opts_data,add_opts=['hidden_incog_input_params','in_fmt'])
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
||||
if len(cmd_args) < 1:
|
||||
opts.usage()
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ FMT CODES:
|
|||
}
|
||||
}
|
||||
|
||||
infiles = opts.init(opts_data,add_opts=['b16'])
|
||||
infiles = opts.init(opts_data)
|
||||
|
||||
if not infiles:
|
||||
opts.usage()
|
||||
|
|
|
|||
|
|
@ -542,6 +542,6 @@ from mmgen.addr import KeyGenerator,AddrGenerator,MMGenAddrType
|
|||
from mmgen.keygen import get_backends
|
||||
|
||||
sys.argv = [sys.argv[0]] + ['--skip-cfg-file'] + sys.argv[1:]
|
||||
cmd_args = opts.init(opts_data,add_opts=['exact_output'])
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ opts_data = {
|
|||
}
|
||||
}
|
||||
|
||||
cmd_args = opts.init(opts_data,add_opts=['foo'])
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
||||
if cmd_args == ['show_common_opts_diff']:
|
||||
from mmgen.opts import show_common_opts_diff
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ If no command is given, the whole suite of tests is run.
|
|||
|
||||
sys.argv = [sys.argv[0]] + ['--skip-cfg-file'] + sys.argv[1:]
|
||||
|
||||
cmd_args = opts.init(opts_data,add_opts=['exact_output','profile'])
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
||||
from mmgen.protocol import init_proto_from_opts
|
||||
proto = init_proto_from_opts()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue