Skip to content

Commit

Permalink
[otns_main] cmdline arguments help string rephrased for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
EskoDijk committed Sep 24, 2024
1 parent 5aa5b17 commit e39253f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions otns_main/otns_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ func parseArgs() {
flag.StringVar(&args.WatchLevel, "watch", "off", "set default watch (display) level for new nodes: trace, debug, info, note, warn, error, off.")
flag.BoolVar(&args.OpenWeb, "web", true, "open web visualization")
flag.BoolVar(&args.Realtime, "realtime", false, "use real-time mode (forced speed=1 and autogo)")
flag.StringVar(&args.ListenAddr, "listen", fmt.Sprintf("localhost:%d", InitialDispatcherPort), "specify UDP listen address and port-base")
flag.StringVar(&args.ListenAddr, "listen", fmt.Sprintf("localhost:%d", InitialDispatcherPort), "specify TCP/UDP host and port base value for web-GUI/RPC. Recommended ports are 9000, 9010, 9020, etc.")
flag.BoolVar(&args.DumpPackets, "dump-packets", false, "dump packets")
flag.StringVar(&args.PcapType, "pcap", pcap.FrameTypeWpanStr, "PCAP file type: 'off', 'wpan', or 'wpan-tap' (name is \"current.pcap\")")
flag.StringVar(&args.PcapType, "pcap", pcap.FrameTypeWpanStr, "PCAP file type: 'off', 'wpan', or 'wpan-tap'. PCAP is saved to file 'current.pcap'.")
flag.BoolVar(&args.NoReplay, "no-replay", false, "do not generate Replay file (named \"otns_?.replay\")")
flag.Int64Var(&args.RandomSeed, "seed", 0, "set specific random-seed value (for reproducability)")
flag.BoolVar(&args.PhyTxStats, "phy-tx-stats", false, "generate PHY Tx statistics CSV file")
Expand Down

0 comments on commit e39253f

Please sign in to comment.