Browse Source

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

The MMGen Project 3 years ago
parent
commit
0ac28869b3

+ 1 - 1
mmgen/main_addrgen.py

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

+ 1 - 1
mmgen/main_autosign.py

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

+ 1 - 1
mmgen/main_passgen.py

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

+ 1 - 1
mmgen/main_split.py

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

+ 1 - 1
mmgen/main_tool.py

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

+ 1 - 1
mmgen/main_txsign.py

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

+ 1 - 1
test/gentest.py

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

+ 1 - 1
test/misc/opts.py

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

+ 1 - 1
test/tooltest.py

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