eal: add help option
authorThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 29 Jan 2015 16:51:17 +0000 (17:51 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 11:08:01 +0000 (12:08 +0100)
commita906cf28fd34c6e79d06297f74e6c747b01fa8c1
treed395619a82e45cde81f3b65551fcab6a7bd40f79
parent97bf974ca2ba4bdefdb723dae66f53340bbc5c90
eal: add help option

Help is printed with -h or --help.

Help is also printed for an unknown option.
This was broken since the rework of options.

Fixes: 489a9d6c9f77 ("merge bsd and linux common options parsing")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: David Marchand <david.marchand@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/common/eal_options.h
lib/librte_eal/linuxapp/eal/eal.c