From f6af3ed14a97fb96e5ef21d1531e9c9edd786e7a Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Sun, 28 Oct 2018 13:19:28 +0000 Subject: [PATCH] size_report: Mark arguments as required We need a minimum of --outdir, --objdump, and --nm set for the script to work so mark these arguments as required. Signed-off-by: Kumar Gala --- scripts/footprint/size_report | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/footprint/size_report b/scripts/footprint/size_report index 02e2f895e1c..6ec53005718 100755 --- a/scripts/footprint/size_report +++ b/scripts/footprint/size_report @@ -402,7 +402,7 @@ def main(): parser.add_argument("-d", "--depth", dest="depth", type=int, help="How deep should we go into the tree", metavar="DEPTH") - parser.add_argument("-o", "--outdir", dest="outdir", + parser.add_argument("-o", "--outdir", dest="outdir", required=True, help="read files from directory OUT", metavar="OUT") parser.add_argument("-k", "--kernel-name", dest="binary", default="zephyr", help="kernel binary name") @@ -412,11 +412,11 @@ def main(): parser.add_argument("-F", "--rom", action="store_true", dest="rom", default=False, help="print ROM statistics") - parser.add_argument("-s", "--objdump", dest="bin_objdump", + parser.add_argument("-s", "--objdump", dest="bin_objdump", required=True, help="Path to the GNU binary utility objdump") parser.add_argument("-c", "--objcopy", dest="bin_objcopy", help="Path to the GNU binary utility objcopy") - parser.add_argument("-n", "--nm", dest="bin_nm", + parser.add_argument("-n", "--nm", dest="bin_nm", required=True, help="Path to the GNU binary utility nm") args = parser.parse_args()