1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sniffer.py: document default parameter values in help

This commit is contained in:
Martine Lenders 2018-09-26 20:28:43 +02:00 committed by Martine Lenders
parent ee613bda94
commit 1216b9b7b6

View File

@ -143,14 +143,14 @@ def main():
p = argparse.ArgumentParser()
p.add_argument("-b", "--baudrate", type=int, default=115200,
help="Baudrate of the serial port (only evaluated "
"for non TCP-terminal)")
"for non TCP-terminal, default: 112500)")
p.add_argument("conn", metavar="tty/host:port", type=str,
help="Serial port or TCP (host, port) tuple to "
"terminal with sniffer application")
p.add_argument("channel", type=int, help="Channel to sniff on")
p.add_argument("outfile", type=argparse.FileType("w+b"),
default=default_outfile, nargs="?",
help="PCAP file to output to")
help="PCAP file to output to (default: stdout)")
args = p.parse_args()
conn = connect(args)