[PATCH 02/12] argparse: add argparse library

Stephen Hemminger stephen at networkplumber.org
Mon Jan 22 05:54:08 CET 2024


On Mon, 22 Jan 2024 03:57:52 +0000
Chengwen Feng <fengchengwen at huawei.com> wrote:

> +Parsing by autosave way
> +~~~~~~~~~~~~~~~~~~~~~~~
> +
> +For which known value types (just like ``RTE_ARGPARSE_ARG_VALUE_INT``"), could
> +parse by autosave way, just like above "--aaa"/"--bbb"/"--ccc" optional
> +arguments:
> +
> +If the user input parameter are: "program --aaa --bbb 1234 --ccc=20 ...", then
> +the aaa_val will equal 100, the bbb_val will equal 1234 and the ccc_val will
> +equal 20.
> +
> +If the user input parameter are: "program --ccc ...", then the aaa_val and
> +bbb_val will not modify, and ccc_val will equal 200.

These paragraphs are awkwardly worded.


More information about the dev mailing list