From 4a17de8333e97c261df890783aa91589ba9dc897 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Mon, 14 Oct 2013 23:38:09 +0200 Subject: Only print chipID in -t with verbosity of 0 Signed-off-by: Michael Buesch --- libtoprammer/chip.py | 4 ++++ toprammer | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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." -- cgit v1.2.3