Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

Commit

Permalink
Handle flags after arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERALERT authored Apr 26, 2024
1 parent 97bde62 commit 1b4998d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/v2/picocrypt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ func work() int {
}
}
}
for _, v := range flag.Args() {
if v == "-p" || v == "-r" || v == "-fix" {
fmt.Println("Flags are only accepted before arguments!")
return 1
}
}

var password, cpassword []byte
var err error
Expand Down

0 comments on commit 1b4998d

Please # to comment.