app/dumpcap: allow help/version without primary process

Currently dumpcap tries to initialize dpdk before parsing command line
arguments, this makes it impossible to check version or help without
having the primary process running already.

Signed-off-by: Ben Magistro <koncept1@gmail.com>
This commit is contained in:
Ben Magistro 2022-01-25 03:25:45 +00:00 committed by Thomas Monjalon
parent 499b1cbcf9
commit a8dde09f97

View File

@ -786,8 +786,8 @@ int main(int argc, char **argv)
progname = argv[0];
dpdk_init();
parse_opts(argc, argv);
dpdk_init();
if (filter_str)
compile_filter();