scripts/bloat-o-meter: switch argument parsing to using argparse
authorNikolay Borisov <nborisov@suse.com>
Fri, 1 Jul 2022 11:35:12 +0000 (14:35 +0300)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:40 +0000 (17:31 -0700)
commitb62eb2731e17e83c32e1a6089b4463da1a75e66e
tree3af4d6f21f50e5273d0c4d6a508a09b2784af7bd
parenta16ceb13961068f7209e34d7984f8e42d2c06159
scripts/bloat-o-meter: switch argument parsing to using argparse

This will facilitate further extension to the arguments the script takes.
As an added benefit it also produces saner usage output, where mutual
exclusivity of the c|d|t parameters is clearly visible:

./scripts/bloat-o-meter  -h
usage: bloat-o-meter [-h] [-c | -d | -t] file1 file2

Simple script used to compare the symbol sizes of 2 object files

positional arguments:
  file1       First file to compare
  file2       Second file to compare

optional arguments:
  -h, --help  show this help message and exit
  -c          categorize output based on symbol type
  -d          Show delta of Data Section
  -t          Show delta of text Section

Link: https://lkml.kernel.org/r/20220701113513.1938008-1-nborisov@suse.com
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/bloat-o-meter