diff --git a/exploits.go b/exploits.go index 69aef9b..1d76c09 100644 --- a/exploits.go +++ b/exploits.go @@ -21,7 +21,6 @@ func main() { //fmt.Println(quiet) if !quiet { modules.Welcome() - //exploits.RunExpandingVideoTask() } fmt.Println("input file: " + inputFile) @@ -39,9 +38,7 @@ func handleArgs(args []string, quiet *bool) { for i, s := range args { switch s { // quiet - case "-q": - *quiet = true - case "--quiet": + case "-q", "--quiet": *quiet = true // Input File @@ -70,7 +67,7 @@ func handleArgs(args []string, quiet *bool) { func initCommand(inputFile string, mode string) { inputFile = strings.ToLower(inputFile) switch strings.ToLower(mode) { - case "expandingvideo": + case "e": if strings.HasSuffix(inputFile, ".webm") { fmt.Println("editing video.") exploits.RunExpandingVideoTask(inputFile) @@ -78,7 +75,7 @@ func initCommand(inputFile string, mode string) { } else { fmt.Println("File is not a webm, check -h") } - case "negativevideo": + case "n": if strings.HasSuffix(inputFile, ".webm") { fmt.Println("editing video.") exploits.RunNegativeVideoTask(inputFile) @@ -86,7 +83,7 @@ func initCommand(inputFile string, mode string) { } else { fmt.Println("File is not a webm, check -h") } - case "zerovideo": + case "0", "z": if strings.HasSuffix(inputFile, ".webm") { fmt.Println("editing video.") exploits.RunZeroVideoTask(inputFile) @@ -94,7 +91,7 @@ func initCommand(inputFile string, mode string) { } else { fmt.Println("File is not a webm, check -h") } - case "virusimage": + case "v": if strings.HasSuffix(inputFile, ".png") { fmt.Println("editing photo.") exploits.RunVirusImageTask(inputFile) diff --git a/modules/help.go b/modules/help.go index 0b8c93a..baf36c6 100644 --- a/modules/help.go +++ b/modules/help.go @@ -15,9 +15,9 @@ func Help(progName string) { fmt.Println("") fmt.Println("modes:") fmt.Println(" video:") - fmt.Println(" expandingvideo takes input video (.webm) and edits it so discord will keep making it longer") - fmt.Println(" negativevideo takes input video (.webm) and edits it so discord will think it has got a huge negative duration") - fmt.Println(" zerovideo takes input video (.webm) and edits it so discord will think it has got a 0s duration") + fmt.Println(" e takes input video (.webm) and edits it so discord will keep making it longer") + fmt.Println(" n takes input video (.webm) and edits it so discord will think it has got a huge negative duration") + fmt.Println(" z, 0 takes input video (.webm) and edits it so discord will think it has got a 0s duration") fmt.Println(" image:") - fmt.Println(" virusimage takes an image (.png) and makes other users' windows defender think it's a virus\n ") + fmt.Println(" v takes an image (.png) and makes other users' windows defender think it's a virus\n ") }