summaryrefslogtreecommitdiffhomepage
path: root/tools/trace/trace.py
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-05-15 20:45:04 +0200
committerNélio Laranjeiro2009-05-15 20:45:04 +0200
commit6966b30c7f8a1630c137d92e0af723139831f5fb (patch)
tree51ce2dc73d9c49900f5483a78694bfd44e483b06 /tools/trace/trace.py
parent5332309db23e5eb2bf902d899a1116a415b3439c (diff)
* tools/trace: (Closes #67)
* Document how to have the options available. * Improve options explanation.
Diffstat (limited to 'tools/trace/trace.py')
-rw-r--r--tools/trace/trace.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/trace/trace.py b/tools/trace/trace.py
index b41ef9ef..a6496652 100644
--- a/tools/trace/trace.py
+++ b/tools/trace/trace.py
@@ -6,21 +6,25 @@ sys.path.append ('../../host/')
from tcreator.tcreator import *
from tinter.tinter import *
+INTER_MODE=" (only available on interpretor mode)."
+CREATE_MODE=" (only available on create mode)."
+
print "Trace System v1.0 by APBTeam\n"
parser = OptionParser()
parser.add_option("-e", "--enum-name", dest="enum_name",
- help="provide the enumerator name", metavar="ENUM")
+ help="provide the enumerator name" + CREATE_MODE,
+ metavar="ENUM")
parser.add_option("-o", "--output", dest="outfile",
- help="Store the eunerator on the output file")
+ help="Store the enumerator on the output file" + CREATE_MODE)
parser.add_option("-i", "--infile", dest="infile",
help="Read the data from the file")
parser.add_option("-t", "--type", dest="type",
help="create to create the enumeration, inter to read the log from the flash.")
parser.add_option("-l", "--list", dest="list_trace", action="store_true",
- help="List the number of the traces.")
+ help="List the number of the traces" + INTER_MODE)
parser.add_option("-n", "--num", type="int", dest="trace",
- help="Dump the trace num provided, only used in inter mode.")
+ help="Dump the trace number provided" + INTER_MODE)
[options, args] = parser.parse_args()