@@ -21,7 +21,7 @@ use crate::{
2121pub fn ask_hash ( args : & BurnArgs , cf : CompressionFormat ) -> anyhow:: Result < Option < FileHashInfo > > {
2222 let hash_params = match ( & args. hash , & args. hash_file ) {
2323 ( _, Some ( hash_file) ) => {
24- let Some ( ( algs, _, expected_hash) ) = find_hash_in_user_file ( & args. input , hash_file)
24+ let Some ( ( algs, _, expected_hash) ) = find_hash_in_user_file ( & args. image , hash_file)
2525 else {
2626 eprintln ! (
2727 "Could not parse {} as a valid hash file!" ,
@@ -42,7 +42,7 @@ pub fn ask_hash(args: &BurnArgs, cf: CompressionFormat) -> anyhow::Result<Option
4242 }
4343 ( HashArg :: Skip , _) => None ,
4444 ( HashArg :: Ask , _) => {
45- match find_hash_in_standard_files ( & args. input ) {
45+ match find_hash_in_standard_files ( & args. image ) {
4646 Some ( ( algs, expected_hashfile, expected_hash) )
4747 if Confirm :: new ( & format ! (
4848 "Detected hash file {expected_hashfile} in the directory. Do you want to use it?"
@@ -72,7 +72,7 @@ pub fn ask_hash(args: &BurnArgs, cf: CompressionFormat) -> anyhow::Result<Option
7272 return Ok ( None ) ;
7373 } ;
7474
75- let hash_result = do_hashing ( & args. input , & params) ?;
75+ let hash_result = do_hashing ( & args. image , & params) ?;
7676
7777 if hash_result. file_hash == params. expected_hash {
7878 eprintln ! ( "Disk image verified successfully!" ) ;
0 commit comments