summaryrefslogtreecommitdiffstats
path: root/toprammer
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-02-15 17:02:40 +0100
committerMichael Buesch <mb@bu3sch.de>2010-02-15 17:02:40 +0100
commit71ab4f970f76e6bffcf4894e5f5a6b669471ec20 (patch)
tree27f4cc5a2cbc7f416a3c16f8960169d65c8f1541 /toprammer
parent797d9ced0c0343423c1e515a50d25caafbe132ed (diff)
downloadtoprammer-71ab4f970f76e6bffcf4894e5f5a6b669471ec20.tar.xz
toprammer-71ab4f970f76e6bffcf4894e5f5a6b669471ec20.zip
Add option to print supported chips
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'toprammer')
-rwxr-xr-xtoprammer9
1 files changed, 7 insertions, 2 deletions
diff --git a/toprammer b/toprammer
index ab9427f..2e1c03b 100755
--- a/toprammer
+++ b/toprammer
@@ -461,6 +461,7 @@ def usage():
print " -L|--write-lock FILE Write the lock bits"
print ""
print "Optional:"
+ print " -t|--list Print a list of supported chips and exit"
print " -d|--device BUS.DEV Use the programmer at BUS.DEV"
print " First found programmer is used, if not given."
print " -V|--verbose LEVEL Set the verbosity level. Default = 1"
@@ -492,18 +493,22 @@ def main(argv):
opt_usebroken = False
try:
(opts, args) = getopt.getopt(sys.argv[1:],
- "hb:d:V:Qs:xp:P:e:E:f:F:o:l:L:B",
+ "hb:d:V:Qs:xp:P:e:E:f:F:o:l:L:Bt",
[ "help", "bitfile=", "device=", "verbose=", "noqueue",
"read-sig=", "erase", "read-prog=", "write-prog=",
"read-eeprom=", "write-eeprom=", "read-fuse=", "write-fuse=",
"read-lock=", "write-lock=",
- "force=", "broken", ])
+ "force=", "broken", "list", ])
for (o, v) in opts:
if o in ("-h", "--help"):
usage()
return 0
if o in ("-b", "--bitfile"):
opt_bitfile = v
+ if o in ("-t", "--list"):
+ print "Supported chips:"
+ dumpSupportedChips(sys.stdout)
+ return 0
if o in ("-d", "--device"):
try:
v = v.split(".")
bues.ch cgit interface