Re: [PATCH v4 0/7] document and simplify use of cmdline

2023-10-18 Thread Bruce Richardson
On Wed, Oct 18, 2023 at 01:21:40PM +0200, David Marchand wrote: > Hello Bruce, > > > On Tue, Oct 17, 2023 at 7:08 PM Bruce Richardson > wrote: > > > > sure I like it that much as a feature :-) I rather like having unique > > > > prefixes for each command. I wasn't actually aware of the testpmd "

Re: [PATCH v4 0/7] document and simplify use of cmdline

2023-10-18 Thread David Marchand
Hello Bruce, On Tue, Oct 17, 2023 at 7:08 PM Bruce Richardson wrote: > > > sure I like it that much as a feature :-) I rather like having unique > > > prefixes for each command. I wasn't actually aware of the testpmd "help > > > " command at all. I will have to look into it. > > > > Let me propo

Re: [PATCH v4 0/7] document and simplify use of cmdline

2023-10-17 Thread Bruce Richardson
On Tue, Oct 17, 2023 at 06:23:47PM +0200, David Marchand wrote: > On Tue, Oct 17, 2023 at 10:29 AM Bruce Richardson > wrote: > > > > > > - testpmd accepts both "help" and "help " commands. > > > But the cmdline library does not provide a way (afair) for specifiying > > > this "optional" aspect. >

Re: [PATCH v4 0/7] document and simplify use of cmdline

2023-10-17 Thread Bruce Richardson
On Tue, Oct 17, 2023 at 06:23:47PM +0200, David Marchand wrote: > On Tue, Oct 17, 2023 at 10:29 AM Bruce Richardson > wrote: > > > > > > - testpmd accepts both "help" and "help " commands. > > > But the cmdline library does not provide a way (afair) for specifiying > > > this "optional" aspect. >

Re: [PATCH v4 0/7] document and simplify use of cmdline

2023-10-17 Thread David Marchand
On Tue, Oct 17, 2023 at 10:29 AM Bruce Richardson wrote: > > > > - testpmd accepts both "help" and "help " commands. > > But the cmdline library does not provide a way (afair) for specifiying > > this "optional" aspect. > > > > And it can't be expressed with this series current syntax since > > ge

Re: [PATCH v4 0/7] document and simplify use of cmdline

2023-10-17 Thread Bruce Richardson
On Tue, Oct 17, 2023 at 09:29:34AM +0100, Bruce Richardson wrote: > On Tue, Oct 17, 2023 at 09:10:51AM +0200, David Marchand wrote: > > > > - Multi choice fixed strings is something that is often used in > > testpmd, like here, in the help command. Here is my quick > > hack: > > > > diff --g

Re: [PATCH v4 0/7] document and simplify use of cmdline

2023-10-17 Thread Bruce Richardson
On Tue, Oct 17, 2023 at 09:10:51AM +0200, David Marchand wrote: > Hi Bruce, > > On Mon, Oct 16, 2023 at 4:06 PM Bruce Richardson > wrote: > > > > The DPDK commandline library is widely used by apps and examples within > > DPDK, but it is not documented in our programmers guide and it requires > >

Re: [PATCH v4 0/7] document and simplify use of cmdline

2023-10-17 Thread David Marchand
Hi Bruce, On Mon, Oct 16, 2023 at 4:06 PM Bruce Richardson wrote: > > The DPDK commandline library is widely used by apps and examples within > DPDK, but it is not documented in our programmers guide and it requires > a lot of boilerplate code definitions in order to used. We can improve > this s

[PATCH v4 0/7] document and simplify use of cmdline

2023-10-16 Thread Bruce Richardson
The DPDK commandline library is widely used by apps and examples within DPDK, but it is not documented in our programmers guide and it requires a lot of boilerplate code definitions in order to used. We can improve this situation by creating a simple python script to automatically generate the boil