summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2013-10-14 23:38:09 +0200
committerMichael Buesch <m@bues.ch>2013-10-14 23:38:09 +0200
commit4a17de8333e97c261df890783aa91589ba9dc897 (patch)
treec48b3fdcf46692c84443469352c29aebf424fc28
parentf7a8f791ac9a85b3a64fe009dc1ddaef77e94bf2 (diff)
downloadtoprammer-4a17de8333e97c261df890783aa91589ba9dc897.tar.xz
toprammer-4a17de8333e97c261df890783aa91589ba9dc897.zip
Only print chipID in -t with verbosity of 0
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--libtoprammer/chip.py4
-rwxr-xr-xtoprammer2
2 files changed, 5 insertions, 1 deletions
diff --git a/libtoprammer/chip.py b/libtoprammer/chip.py
index fcf0b4c..ae6761c 100644
--- a/libtoprammer/chip.py
+++ b/libtoprammer/chip.py
@@ -474,6 +474,10 @@ class ChipDescription:
def dump(self, fd, verbose=1):
"Dump information about a registered chip to file fd."
+ if verbose <= 0:
+ fd.write(self.chipID)
+ return
+
def wrline(prefix, content):
# Write a formatted feature line
fd.write("%15s: %s\n" % (prefix, content))
diff --git a/toprammer b/toprammer
index c240a1c..685d4d5 100755
--- a/toprammer
+++ b/toprammer
@@ -63,7 +63,7 @@ def usage():
print ""
print "Other options:"
print " -t|--list Print a list of supported chips and exit."
- print " Use -V|--verbose to control the list verbosity (1-4)"
+ print " Use -V|--verbose to control the list verbosity (0-4)"
print " -d|--device DEVID Use a specific programmer. For USB:"
print " usb:BUSNR.DEVNR"
print " First found programmer is used, if not given."
bues.ch cgit interface