diff options
author | Bartosz Golaszewski <bartekgola@gmail.com> | 2013-10-16 19:18:05 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-10-16 19:18:05 +0200 |
commit | 28a209466f43c22db42dd02baa136ac7ac25069b (patch) | |
tree | bd8fc6cdbe9bfc9e2a586ff01b9fadcaecd60560 /scripts/bloat-o-meter | |
parent | 64938011f3ba06a8f425926397172dc361bce851 (diff) | |
download | busybox-28a209466f43c22db42dd02baa136ac7ac25069b.tar.gz |
bloat-o-meter: add usage info
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/bloat-o-meter')
-rwxr-xr-x | scripts/bloat-o-meter | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 6db2a5e58..cb861b8e9 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter @@ -7,11 +7,14 @@ # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. -import sys, os#, re +import sys, os def usage(): - sys.stderr.write("usage: %s [-t] file1 file2\n" % sys.argv[0]) - sys.exit(-1) + sys.stderr.write("usage: %s [-t] file1 file2 [-- <readelf options>]\n" + % sys.argv[0]) + sys.stderr.write("\t-t\tShow time spent on parsing/processing\n") + sys.stderr.write("\t--\tPass additional parameters to readelf\n") + sys.exit(1) f1, f2 = (None, None) flag_timing, dashes = (False, False) @@ -31,6 +34,8 @@ for f in sys.argv[1:]: f1 = f elif f2 is None: f2 = f + else: + usage() if flag_timing: import time if f1 is None or f2 is None: |