diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-12-23 20:27:25 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2010-12-23 20:27:25 +0100 |
commit | 98d2b85a974dc8cc935290c567aef9a0f6226e46 (patch) | |
tree | 116759f82bdc4ecdae2e3f9b2421be6c56de0df9 | |
parent | 8f7d3ba8babc20d5271630edad2a605f64ed622e (diff) |
pySim-prog: Check that batch mode is used with auto parameters
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rwxr-xr-x | pySim-prog.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pySim-prog.py b/pySim-prog.py index ef6d0d8..12021aa 100755 --- a/pySim-prog.py +++ b/pySim-prog.py @@ -128,6 +128,10 @@ def parse_options(): if (options.batch_mode) and (options.num is None): options.num = 0 + if (options.batch_mode): + if (options.imsi is not None) or (options.iccid is not None): + parser.error("Can't give ICCID/IMSI for batch mode, need to use automatic parameters ! see --num and --secret for more informations") + if ((options.imsi is None) or (options.iccid is None)) and (options.num is None): parser.error("If either IMSI or ICCID isn't specified, num is required") |