made modes shorter

This commit is contained in:
Schmenn 2021-01-12 11:36:43 +01:00
parent 661d499d7d
commit 4a44c592f7
2 changed files with 9 additions and 12 deletions

View file

@ -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)

View file

@ -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 ")
}