@@ -57,7 +57,8 @@ mod measurement {
5757 /// Milan-v1, EPYC-Milan-v2, EPYC-Genoa, EPYC-Genoa-v1)
5858 #[ arg( long, value_name = "vcpu-type" ,
5959 conflicts_with_all = [ "vcpu_sig" , "vcpu_family" , "vcpu_model" , "vcpu_stepping" ] ,
60- required_unless_present_all( [ "vcpu_sig" , "vcpu_family" , "vcpu_model" , "vcpu_stepping" ] ) ) ]
60+ required_unless_present_all( [ "vcpu_sig" , "vcpu_family" , "vcpu_model" , "vcpu_stepping" ] ,
61+ ) , ignore_case = true ) ]
6162 pub vcpu_type : Option < String > ,
6263
6364 /// Guest vcpu signature value
@@ -77,7 +78,7 @@ mod measurement {
7778 pub vcpu_stepping : Option < i32 > ,
7879
7980 /// Type of guest vmm (QEMU, ec2, KRUN)
80- #[ arg( long, short = 't' , value_name = "vmm-type" ) ]
81+ #[ arg( long, short = 't' , value_name = "vmm-type" , ignore_case = true ) ]
8182 pub vmm_type : Option < String > ,
8283
8384 /// OVMF file to calculate measurement from
@@ -110,7 +111,13 @@ mod measurement {
110111 pub ovmf_hash : Option < String > ,
111112
112113 ///Choose output format (base64, hex).
113- #[ arg( long, short = 'f' , value_name = "output-format" , default_value = "hex" ) ]
114+ #[ arg(
115+ long,
116+ short = 'f' ,
117+ value_name = "output-format" ,
118+ default_value = "hex" ,
119+ ignore_case = true
120+ ) ]
114121 pub output_format : String ,
115122
116123 /// Optional file path where measurement value can be stored in
@@ -203,7 +210,13 @@ mod ovmf_hash {
203210 pub ovmf : PathBuf ,
204211
205212 /// Choose output format (base64, hex). Defaults to hex
206- #[ arg( short = 'f' , long, value_name = "output-format" , default_value = "hex" ) ]
213+ #[ arg(
214+ short = 'f' ,
215+ long,
216+ value_name = "output-format" ,
217+ default_value = "hex" ,
218+ ignore_case = true
219+ ) ]
207220 pub output_format : String ,
208221
209222 /// Optional file where hash value can be stored in
@@ -261,7 +274,7 @@ mod idblock {
261274 pub launch_digest : String ,
262275
263276 /// Family ID of the guest provided by the guest owner. Has to be 16 characters.
264- #[ arg( short, long, value_name = "familiy -id" ) ]
277+ #[ arg( short, long, value_name = "family -id" ) ]
265278 pub family_id : Option < String > ,
266279
267280 /// Image ID of the guest provided by the guest owner. Has to be 16 characters.
0 commit comments