diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-08-05 12:34:04 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-08-05 12:34:04 +0000 |
commit | 3de643ddac29f10b22a24dd57021185b696f9286 (patch) | |
tree | e677ac887f038ca6adb46047c1ee4a801b6bc067 /examples | |
parent | 3b5439dee6540587c889ee960d30e877ee3da27b (diff) | |
download | pyserial-3de643ddac29f10b22a24dd57021185b696f9286.tar.gz |
fix wrong command line argument check
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@294 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'examples')
-rw-r--r-- | examples/miniterm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/miniterm.py b/examples/miniterm.py index a85f1d8..895830c 100644 --- a/examples/miniterm.py +++ b/examples/miniterm.py @@ -480,7 +480,7 @@ def main(): if options.cr and options.lf: parser.error("only one of --cr or --lf can be specified") - if options.dtr_state is not None and options.rts_state is not None and options.dtr_state == options.rts_state: + if options.menu_char == options.exit_char: parser.error('--exit-char can not be the same as --menu-char') global EXITCHARCTER, MENUCHARACTER |