[PATCH v4 1/8] arg_parser: new library for command line parsing

Morten Brørup mb at smartsharesystems.com
Wed Jan 24 14:16:13 CET 2024


> From: Euan Bourke [mailto:euan.bourke at intel.com]
> Sent: Friday, 15 December 2023 18.26
> 
> Add a new library to make it easier for eal and other libraries to
> parse
> command line arguments.
> 
> The first function in this library is one to parse a corelist string
> into an array of individual core ids. The function will then return the
> total number of cores described in the corelist.
> 
> Signed-off-by: Euan Bourke <euan.bourke at intel.com>
> ---

It would be nice if the library supported open-ended ranges, i.e. "-3" meaning all available cores up to and including 3, and "3-" meaning all available cores from 3 and up.




More information about the dev mailing list