summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-05-09 13:35:36 -0700
committerGerald Combs <gerald@wireshark.org>2016-05-11 17:30:33 +0000
commitd7cbea94282099405e0754ff927ec3a5a79dcb9d (patch)
treefc400ad7f91d0cbd02e05993646245b447a937dd /tshark.c
parentbca12baa4c79fe383f67da3c12b4b1cb6c1e09ac (diff)
downloadwireshark-d7cbea94282099405e0754ff927ec3a5a79dcb9d.tar.gz
TShark: Add a "-E bom=" option.
Add an option to print the UTF-8 BOM. Change-Id: I3d30c67852b9b89d1548b0f957d97fd8e8741049 Reviewed-on: https://code.wireshark.org/review/15318 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 8d0dc03303..90361903a3 100644
--- a/tshark.c
+++ b/tshark.c
@@ -377,6 +377,7 @@ print_usage(FILE *output)
fprintf(output, " _ws.col.Info)\n");
fprintf(output, " this option can be repeated to print multiple fields\n");
fprintf(output, " -E<fieldsoption>=<value> set options for output when -Tfields selected:\n");
+ fprintf(output, " bom=y|n print a UTF-8 BOM\n");
fprintf(output, " header=y|n switch headers on and off\n");
fprintf(output, " separator=/t|/s|<char> select tab, space, printable character as separator\n");
fprintf(output, " occurrence=f|l|a print first, last or all occurrences of each field\n");