diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-10-23 17:47:47 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-10-23 17:47:47 +0000 |
commit | e41d5b90491883bad3e4a1fa5d365591b363ceb6 (patch) | |
tree | d6a0bc8038d6a6861b93935ded6d85737797bc84 /epan/column.c | |
parent | 918df38a054e24bb49eb77e8af723b6d363d4bda (diff) | |
download | wireshark-e41d5b90491883bad3e4a1fa5d365591b363ceb6.tar.gz wireshark-e41d5b90491883bad3e4a1fa5d365591b363ceb6.tar.bz2 wireshark-e41d5b90491883bad3e4a1fa5d365591b363ceb6.zip |
Provide a usage example of the column formats.
svn path=/trunk/; revision=52802
Diffstat (limited to 'epan/column.c')
-rw-r--r-- | epan/column.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/epan/column.c b/epan/column.c index d012f8f3ed..6472cc9ef9 100644 --- a/epan/column.c +++ b/epan/column.c @@ -193,6 +193,27 @@ column_dump_column_formats(void) for (fmt = 0; fmt < NUM_COL_FMTS; fmt++) { printf("%s\t%s\n", col_format_to_string(fmt), col_format_desc(fmt)); } + + printf("\nFor example, to print Wireshark's default columns with tshark:\n\n" +#ifdef _WIN32 + "tshark.exe -o \"gui.column.format:" + "\\\"No.\\\",\\\"%%m\\\"," + "\\\"Time\\\",\\\"%%t\\\"," + "\\\"Source\\\",\\\"%%s\\\"," + "\\\"Destination\\\",\\\"%%d\\\"," + "\\\"Protocol\\\",\\\"%%p\\\"," + "\\\"Length\\\",\\\"%%L\\\"," + "\\\"Info\\\",\\\"%%i\\\"\"\n"); +#else + "tshark -o 'gui.column.format:" + "\"No.\",\"%%m\"," + "\"Time\",\"%%t\"," + "\"Source\",\"%%s\"," + "\"Destination\",\"%%d\"," + "\"Protocol\",\"%%p\"," + "\"Length\",\"%%L\"," + "\"Info\",\"%%i\"'\n"); +#endif } /* Marks each array element true if it can be substituted for the given |