remove unneeded 'add_opts' argument in opts.init() calls

This commit is contained in:
The MMGen Project 2022-01-21 11:23:43 +00:00
commit 0ac28869b3
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
9 changed files with 9 additions and 9 deletions

View file

@ -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'

View file

@ -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',

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -95,7 +95,7 @@ FMT CODES:
}
}
infiles = opts.init(opts_data,add_opts=['b16'])
infiles = opts.init(opts_data)
if not infiles:
opts.usage()

View file

@ -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()

View file

@ -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

View file

@ -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()