Commit c985c959 authored by Michael Büsch's avatar Michael Büsch

cli: Add option to force 2-accu mode

Signed-off-by: Michael Büsch's avatarMichael Buesch <>
parent 8c5b1498
......@@ -45,12 +45,13 @@ def usage():
printInfo(" -1|--onecycle Only run one cycle")
printInfo(" -C|--cycle-limit SEC Cycle time limit, in seconds (default 5.0)")
printInfo(" -4|--fouraccu Enable 4-accu mode")
printInfo(" -2|--twoaccu Force 2-accu mode")
printInfo(" -4|--fouraccu Force 4-accu mode")
printInfo(" -D|--no-cpu-dump Do not show CPU status while running")
printInfo(" -q|--quiet Do not show any status messages")
printInfo(" -x|--extended-insns Enable extended instructions")
printInfo(" -t|--obtemp 1/0 Enable/disable writing of OB-temp variables (Default: off)")
printInfo(" -m|--mnemonics auto Mnemonics type: en, de, auto (default)")
printInfo(" -m|--mnemonics auto Force mnemonics type: en, de, auto")
printInfo(" -P|--profile 0 Set profiling level (Default: 0)")
printInfo("Server backend related options:")
......@@ -350,8 +351,8 @@ def main():
(opts, args) = getopt.getopt(sys.argv[1:],
[ "help", "onecycle", "cycle-time=", "fouraccu",
[ "help", "onecycle", "cycle-time=", "twoaccu", "fouraccu",
"quiet", "no-cpu-dump", "extended-insns",
"obtemp=", "mnemonics=",
"hardware=", "hardware-info=", "profile=",
......@@ -374,6 +375,8 @@ def main():
except ValueError:
printError("-C|--cycle-time: Invalid time format")
if o in ("-2", "--twoaccu"):
opt_nrAccus = 2
if o in ("-4", "--fouraccu"):
opt_nrAccus = 4
if o in ("-q", "--quiet"):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment