dl-rename/main.go
2017-09-16 17:08:18 +02:00

26 lines
305 B
Go

package main
import (
"fmt"
"os"
)
func main() {
args := os.Args[1:]
if len(args) == 0 {
fmt.Println("No action specified")
return
}
switch args[0] {
case "removesuffix":
fallthrough
case "rs":
suffix := args[1]
break
default:
fmt.Println("Invalid action specified")
return
}
}