Skip to content

Commit 1b02df0

Browse files
committed
elbpcom: show defaults in --help output
1 parent f34122e commit 1b02df0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/hal/utils/elbpcom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
parser = optparse.OptionParser("%prog [options] [commands]",
2727
description="Communicate with Mesa ethernet cards using the LBP16 protocol")
2828
parser.add_option("-i", "--ip", dest="sip",
29-
help="IP address of board",
29+
help="IP address of board (default: 192.168.1.121)",
3030
metavar="X.Y.Z.W", default="192.168.1.121")
3131
parser.add_option("-p", "--port", dest="sport",
32-
help="UDP port of board", type="int", default=27181)
32+
help="UDP port of board (default: 27181)", type="int", default=27181)
3333
parser.add_option("-t", "--timeout", dest="timeout",
34-
help="Response timeout in seconds", type="float", default=.2)
34+
help="Response timeout in seconds (default: 0.2)", type="float", default=.2)
3535
parser.add_option("-s", "--space", dest="space", default=None,
3636
choices = ["0", "1", "2", "3", "4", "5", "6", "7"],
3737
help="Address space to read or write")

0 commit comments

Comments
 (0)