Permalink
Browse files

add long help description for option logpkt

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/wsim@822 c0ef0dea-404d-0410-ad65-84cceb5f200a
  • Loading branch information...
1 parent 8907245 commit 4a6ca6962c0865b069052106218bff288fc637a6 afraboul committed Jan 4, 2012
Showing with 7 additions and 2 deletions.
  1. +1 −1 liblogpkt/logpkt.c
  2. +6 −1 src/options.c
View
@@ -182,7 +182,7 @@ void logpkt_init(int do_log_pkt, char* logpkt, const char* logpktfilename)
}
else
{
- ERROR("pktlog: wrong option, should be '--pktlog=[tx|rx|rxtx|pcap[:id]]'\n");
+ ERROR("pktlog: wrong option, should be '--logpkt=[tx|rx|rxtx|pcap[:id]]'\n");
ERROR("pktlog: log mode set to RX and TX\n");
log_mode = LOG_RX_AND_TX;
}
View
@@ -107,7 +107,12 @@ static struct moption_t logfile_opt = {
static struct moption_t logpkt_opt = {
.longname = "logpkt",
.type = optional_argument,
- .helpstring = "enable radio packets log and set options",
+ .helpstring = "enable radio packets log and set options\n\
+\t\t\t\t--logpkt=[rx | tx | rxtx | pcap[:type] ]\n\
+\t\t\t\t\trx : only RX are logged\n\
+\t\t\t\t\ttx : only TX are logged\n\
+\t\t\t\t\trxtx : both RX and TX are logged (by default)\n\
+\t\t\t\t\tpcap[:type] : pcap file format, optional Data Link Type identifier (default 802.15.4)\n",
.value = NULL
};

0 comments on commit 4a6ca69

Please sign in to comment.