Moved the checking of additional args to within the switch statement and replaced hardcoded index values with optind to make their position relative to the switch as opposed to the full command list. There are also some minor fixes in here wrt the cmd_chosen value to fix issues with the 3 modes and how they handle the case when there are issues with the cmd line. Change-Id: Ic5d547298adec658fd572b9b35d72f588b843113 Signed-off-by: Paul Luse <paul.e.luse@intel.com> Reviewed-on: https://review.gerrithub.io/382910 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ziye Yang <optimistyzy@gmail.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> |
||
---|---|---|
.. | ||
cli | ||
hello_world | ||
Makefile |