Re: [24.03 RFC] argparse: add argparse library

2024-01-26 Thread Stephen Hemminger
On Thu, 25 Jan 2024 14:31:03 +0800 fengchengwen wrote: > Hi Stephen, > > On 2024/1/24 23:54, Stephen Hemminger wrote: > > On Tue, 21 Nov 2023 12:26:51 + > > Chengwen Feng wrote: > > > >> Introduce argparse library (which was inspired by the thread [1]), > >> compared with getopt, the arg

Re: [24.03 RFC] argparse: add argparse library

2024-01-24 Thread fengchengwen
Hi Stephen, On 2024/1/24 23:54, Stephen Hemminger wrote: > On Tue, 21 Nov 2023 12:26:51 + > Chengwen Feng wrote: > >> Introduce argparse library (which was inspired by the thread [1]), >> compared with getopt, the argparse has following advantages: >> 1) Set the help information when definin

Re: [24.03 RFC] argparse: add argparse library

2024-01-24 Thread Stephen Hemminger
On Tue, 21 Nov 2023 12:26:51 + Chengwen Feng wrote: > Introduce argparse library (which was inspired by the thread [1]), > compared with getopt, the argparse has following advantages: > 1) Set the help information when defining parameters. > 2) Support positional parameters. > > The paramete

Re: [24.03 RFC] argparse: add argparse library

2023-11-21 Thread fengchengwen
Hi Stephen, On 2023/11/22 0:36, Stephen Hemminger wrote: > On Tue, 21 Nov 2023 12:26:51 + > Chengwen Feng wrote: > >> Introduce argparse library (which was inspired by the thread [1]), >> compared with getopt, the argparse has following advantages: >> 1) Set the help information when definin

Re: [24.03 RFC] argparse: add argparse library

2023-11-21 Thread Stephen Hemminger
On Tue, 21 Nov 2023 12:26:51 + Chengwen Feng wrote: > Introduce argparse library (which was inspired by the thread [1]), > compared with getopt, the argparse has following advantages: > 1) Set the help information when defining parameters. > 2) Support positional parameters. > > The paramete

[24.03 RFC] argparse: add argparse library

2023-11-21 Thread Chengwen Feng
Introduce argparse library (which was inspired by the thread [1]), compared with getopt, the argparse has following advantages: 1) Set the help information when defining parameters. 2) Support positional parameters. The parameters parsing according following: 1) positional: use callback to parse (