]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgget: fix '-m' option usage
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Sun, 16 Apr 2023 04:40:13 +0000 (10:10 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 17 Apr 2023 17:55:42 +0000 (11:55 -0600)
commitce809ea7519b2741edbb823618fdf6796de1f4d0
treeb955562fe12d5e0e8da123b2fd24b28ac2cd1793
parente7efc43140e5be079619a06efb50d859f5027b16
tools/cgget: fix '-m' option usage

'-m' is logically an independent option and should not be mixed and
matched with other options and also when used with '-h', help always
takes precedence over other options. Fix both cases of usage with
a bool flag, that gets set when parsing the command line option but
executes only it meets the rules of not mixing with other options.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/tools/cgget.c