ShellPkg/DP: Add more check for input parameters
authorDandan Bi <dandan.bi@intel.com>
Mon, 25 Jun 2018 14:49:56 +0000 (22:49 +0800)
committerEric Dong <eric.dong@intel.com>
Thu, 28 Jun 2018 11:46:07 +0000 (19:46 +0800)
commit728f8950d6aa5c050ee028eccaab47f0b3a06872
treea5a7de7b0dd142b128ef5e2f1286102d75c2f3a0
parent3408526e8619640becda48b29d72f3e9b8c7f632
ShellPkg/DP: Add more check for input parameters

New added checkers includes:
1. Too many invalid parameters
2. Too few parameter
3. Invalid number parameter for -n and -t flag
4. Conflict parameter of -A and -R.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c
ShellPkg/DynamicCommand/DpDynamicCommand/Dp.uni