Skip to content

Commit

Permalink
Rename -fix to -f
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERALERT committed Apr 26, 2024
1 parent c73fba2 commit 613ab82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/v2/picocrypt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func work() int {
}
paranoid := flag.Bool("p", false, "")
reedsolo := flag.Bool("r", false, "")
fix := flag.Bool("fix", false, "")
fix := flag.Bool("f", false, "")
flag.Parse()

mode := ""
Expand All @@ -108,7 +108,7 @@ func work() int {
}
}
for _, v := range flag.Args() {
if v == "-p" || v == "-r" || v == "-fix" {
if v == "-p" || v == "-r" || v == "-f" {
fmt.Println("Flags are only accepted before arguments!")
return 1
}
Expand Down Expand Up @@ -580,11 +580,11 @@ func work() int {
fin.Close()
fout.Close()
os.Remove(fout_)
fmt.Println("The input volume is damaged or modified.")
fmt.Println("\nThe input volume is damaged or modified.")
if *reedsolo {
if !(*fix) {
fmt.Println("Fortunately, this volume is encoded with Reed-Solomon.")
fmt.Println("Try again using the -fix flag to repair the corruption.")
fmt.Println("Try again using the '-f' flag to repair the corruption.")
} else {
fmt.Println("The corruption could not be fixed with Reed-Solomon.")
}
Expand Down

0 comments on commit 613ab82

Please sign in to comment.