From 4dbb87bb6676b82f34981f6adedccfa03a9667cd Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 20 Aug 2024 08:45:31 +0200 Subject: [PATCH] utils/genrandconfig: fix fallout of dropping toolchain CSV Commit 2f260084d577 (utils/genrandconfig: remove support for toolchain CSV) kept the --no-toolchains-csv option, but in the rework forgot to keep it as a bool, while argparse default is to expect a string. Rather than re-introduce the action="store_true" which implies the argument is a bool, explicit make it a bool. Fixes: 2f260084d5771728f3340ff6a86a23391133a635 Reported-by: James Hilliard Signed-off-by: Yann E. MORIN Cc: Thomas Petazzoni Signed-off-by: Thomas Petazzoni --- utils/genrandconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/genrandconfig b/utils/genrandconfig index 8e60fd3f9e..ae1f0f85de 100755 --- a/utils/genrandconfig +++ b/utils/genrandconfig @@ -611,7 +611,7 @@ if __name__ == '__main__': help="Buildroot directory (relative to current directory)", type=str, default='.') parser.add_argument("--toolchains-csv", help="Legacy, unused", type=str) - parser.add_argument("--no-toolchains-csv", help="Legacy, unused") + parser.add_argument("--no-toolchains-csv", help="Legacy, unused", type=bool) args = parser.parse_args()