summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2015-08-14 19:36:38 +0200
committerChris Liechti <cliechti@gmx.net>2015-08-14 19:36:38 +0200
commitab2ffc4f8f875393dd03a75aae78b70f4875dbae (patch)
treeb6fe4a8b237c995ae8c5bdff0bd2def648d4dba5 /examples
parent49550ac0930a0f5c1ebde530394295ecf53b0fc3 (diff)
downloadpyserial-git-ab2ffc4f8f875393dd03a75aae78b70f4875dbae.tar.gz
remove empty args (optparse)
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/port_publisher.py6
-rwxr-xr-xexamples/tcp_serial_redirect.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/port_publisher.py b/examples/port_publisher.py
index a87be65..fd49943 100755
--- a/examples/port_publisher.py
+++ b/examples/port_publisher.py
@@ -362,7 +362,7 @@ If running as daemon, write to syslog. Otherwise write to stdout.
group = optparse.OptionGroup(parser, "Serial Port Settings")
- group.add_option("", "--ports-regex",
+ group.add_option("--ports-regex",
dest="ports_regex",
help="specify a regex to search against the serial devices and their descriptions (default: %default)",
default='/dev/ttyUSB[0-9]+',
@@ -372,7 +372,7 @@ If running as daemon, write to syslog. Otherwise write to stdout.
group = optparse.OptionGroup(parser, "Network Settings")
- group.add_option("", "--tcp-port",
+ group.add_option("--tcp-port",
dest="base_port",
help="specify lowest TCP port number (default: %default)",
default=7000,
@@ -389,7 +389,7 @@ If running as daemon, write to syslog. Otherwise write to stdout.
help="start as daemon",
default=False)
- group.add_option("", "--pidfile",
+ group.add_option("--pidfile",
dest="pid_file",
help="specify a name for the PID file",
default=None,
diff --git a/examples/tcp_serial_redirect.py b/examples/tcp_serial_redirect.py
index 0ac5c5a..ab2a015 100755
--- a/examples/tcp_serial_redirect.py
+++ b/examples/tcp_serial_redirect.py
@@ -142,7 +142,7 @@ it waits for the next connect.
default = 9600
)
- group.add_option("", "--parity",
+ group.add_option("--parity",
dest = "parity",
action = "store",
help = "set parity, one of [N, E, O], default=%default",