2 * Copyright (C) 2013 Freescale Semiconductor, Inc.
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
25 #include "Application.h"
34 cout
<< "Usage: nexdump [options] <filename>" << endl
;
35 cout
<< "Options:" << endl
;
36 cout
<< " --help Display this information"
38 cout
<< " --version Display version information"
41 << " --verbose Display decoded debug/trace information"
44 << " --fmlog Display FMan detail trace information"
47 << " --faddr Display Full Addresses in trace information"
50 << " --summary Display a summary of message count information"
56 cout
<< PACKAGE
<< " v" << VERSION
<< endl
;
57 cout
<< "Copyright (C) 2013 Freescale Semiconductor" << endl
;
60 int main(int argc
, char * const argv
[])
66 // process the options
67 for (int i
= 1; i
< argc
; i
++) {
69 string argStr
= argv
[i
];
70 if (argStr
.find("--help") == 0) {
74 } else if (argStr
.find("--version") == 0) {
78 } else if (argStr
.find("--verbose") == 0) {
81 } else if (argStr
.find("--summary") == 0) {
84 } else if (argStr
.find("--faddr") == 0) {
85 app
.enableFullAddrLog();
87 } else if (argStr
.find("--fmlog") == 0) {
90 } else if (in_filename
.empty()) {
91 // treat as the filename
101 // check if filename not found
102 if (in_filename
.empty()) {
108 if (app
.process(in_filename
) == false) {
This page took 0.032333 seconds and 4 git commands to generate.