History log of /dpdk/lib/argparse/rte_argparse.h (Results 1 – 7 of 7)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v24.11, v24.11-rc4, v24.11-rc3, v24.11-rc2, v24.11-rc1, v24.07, v24.07-rc4, v24.07-rc3, v24.07-rc2, v24.07-rc1, v24.03, v24.03-rc4
# 51a639ca 18-Mar-2024 Chengwen Feng <fengchengwen@huawei.com>

argparse: fix hyphens in doc

With the line in rst file:
The single mode: "--aaa" or "-a".
corresponding line in html doc:
The single mode: -aaa or -a.
the two hyphens (--aaa) become one (-aaa).

A

argparse: fix hyphens in doc

With the line in rst file:
The single mode: "--aaa" or "-a".
corresponding line in html doc:
The single mode: -aaa or -a.
the two hyphens (--aaa) become one (-aaa).

According to [1], this commit uses the backquote (``xxx``) to fix it.
And for consistency, use this format for all arguments.

[1] https://stackoverflow.com/questions/51075907/display-two-dashes-in-rst-file

Fixes: e3e579f5bab5 ("argparse: introduce argparse library")
Cc: stable@dpdk.org

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Reviewed-by: Dengdui Huang <huangdengdui@huawei.com>
Acked-by: Jie Hai <haijie1@huawei.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>

show more ...


# f48e4eed 18-Mar-2024 Chengwen Feng <fengchengwen@huawei.com>

argparse: fix argument flags size

The struct rte_argparse_arg's flags was 64bit type, uint64_t should be
used instead of uint32_t where the operation happened.

Also, the flags' bit16 was also unuse

argparse: fix argument flags size

The struct rte_argparse_arg's flags was 64bit type, uint64_t should be
used instead of uint32_t where the operation happened.

Also, the flags' bit16 was also unused, so don't test bit16 in testcase
test_argparse_invalid_arg_flags.

In addition, this commit introduces two bitmask marcros and removes an
internal duplicate macro.

Fixes: 6c5c6571601c ("argparse: verify argument config")
Fixes: 31ed9f9f43bb ("argparse: parse parameters")
Cc: stable@dpdk.org

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Reviewed-by: Dengdui Huang <huangdengdui@huawei.com>
Acked-by: Jie Hai <haijie1@huawei.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>

show more ...


# bd0d68bd 18-Mar-2024 Chengwen Feng <fengchengwen@huawei.com>

argparse: replace flag enum with macros

The enum rte_argparse_flag's value is u64, but an enum in C is
represented as an int. This commit replace these enum values with
macro.

Bugzilla ID: 1409
Fix

argparse: replace flag enum with macros

The enum rte_argparse_flag's value is u64, but an enum in C is
represented as an int. This commit replace these enum values with
macro.

Bugzilla ID: 1409
Fixes: e3e579f5bab5 ("argparse: introduce argparse library")
Fixes: 5357c248c960 ("argparse: parse unsigned integers")
Cc: stable@dpdk.org

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Reviewed-by: Dengdui Huang <huangdengdui@huawei.com>
Acked-by: Jie Hai <haijie1@huawei.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>

show more ...


Revision tags: v24.03-rc3, v24.03-rc2
# edb10170 07-Mar-2024 David Marchand <david.marchand@redhat.com>

argparse: fix parser callback type name

All types exposed in a public header must be prefixed with rte_.

Fixes: e3e579f5bab5 ("argparse: introduce argparse library")

Signed-off-by: David Marchand

argparse: fix parser callback type name

All types exposed in a public header must be prefixed with rte_.

Fixes: e3e579f5bab5 ("argparse: introduce argparse library")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>

show more ...


Revision tags: v24.03-rc1
# 5357c248 26-Jan-2024 Chengwen Feng <fengchengwen@huawei.com>

argparse: parse unsigned integers

This commit supports parsing unsigned base type (u8/u16/u32/u64).

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>


# 9ccd7b27 26-Jan-2024 Chengwen Feng <fengchengwen@huawei.com>

argparse: parse signed integer

Provide API which could parsing the value from the input string based
on the value type. This API could used in user callback when parsing
string by argparse or kvargs

argparse: parse signed integer

Provide API which could parsing the value from the input string based
on the value type. This API could used in user callback when parsing
string by argparse or kvargs library.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>

show more ...


# e3e579f5 26-Jan-2024 Chengwen Feng <fengchengwen@huawei.com>

argparse: introduce argparse library

Introduce argparse library (which was inspired by the thread [1]).
This commit provides public API and doc.

[1] https://patchwork.dpdk.org/project/dpdk/patch/20

argparse: introduce argparse library

Introduce argparse library (which was inspired by the thread [1]).
This commit provides public API and doc.

[1] https://patchwork.dpdk.org/project/dpdk/patch/20231105054539.22303-2-fengchengwen@huawei.com/

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>

show more ...