mirror of https://github.com/acidanthera/audk.git
BaseTools/BinToPcd: Clarify error message for --type HII
https://bugzilla.tianocore.org/show_bug.cgi?id=963 Update error message for --type HII. If either --variable-guid or --variable-name is missing, then print an error message that states that both --variable-guid and --variable-name are required. Cc: Yanyan Sun <yanyan.sun@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
1d79b72ee6
commit
b2e043b689
|
@ -186,11 +186,8 @@ if __name__ == '__main__':
|
||||||
print ' [PcdsDynamicVpd]'
|
print ' [PcdsDynamicVpd]'
|
||||||
print ' [PcdsDynamicExVpd]'
|
print ' [PcdsDynamicExVpd]'
|
||||||
elif args.PcdType == 'HII':
|
elif args.PcdType == 'HII':
|
||||||
if args.VariableGuid is None:
|
if args.VariableGuid is None or args.VariableName is None:
|
||||||
print 'BinToPcd: error: argument --variable-guid is required for --type HII.'
|
print 'BinToPcd: error: arguments --variable-guid and --variable-name are required for --type HII.'
|
||||||
sys.exit()
|
|
||||||
if args.VariableName is None:
|
|
||||||
print 'BinToPcd: error: argument --variable-name is required for --type HII.'
|
|
||||||
sys.exit()
|
sys.exit()
|
||||||
if args.Offset is None:
|
if args.Offset is None:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue