diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-06-01 16:37:27 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-06-01 16:37:27 -0400 |
commit | 98f74034cd23e708686bda38975fa0691e5be971 (patch) | |
tree | 2c7f48a3927cffda88282e753a6bc7e3d10e4750 /scripts/bloat-o-meter | |
parent | 5177e28e9c8d1d0453f906abbf198d0b13c01bfb (diff) | |
download | busybox-98f74034cd23e708686bda38975fa0691e5be971.tar.gz |
bloat-o-meter: touchup argv handling
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Reported-by: Matt Mackall <mpm@selenic.com>
Diffstat (limited to 'scripts/bloat-o-meter')
-rwxr-xr-x | scripts/bloat-o-meter | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 38d2f5c1c..eb6fb87d5 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter @@ -16,12 +16,12 @@ def usage(): if len(sys.argv) < 3: usage() -for f in sys.argv[1], sys.argv[2]: +for f in sys.argv[1:3]: if not os.path.exists(f): sys.stderr.write("Error: file '%s' does not exist\n" % f) usage() -nm_args = " ".join([x for x in sys.argv[3:]]) +nm_args = " ".join(sys.argv[3:]) def getsizes(file): sym = {} for l in os.popen("nm --size-sort %s %s" % (nm_args, file)).readlines(): |