1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package main import ( "fmt" "os" ) func main() { if len(os.Args) != 3 { fmt.Fprintf(os.Stderr, "usage: kew in/ out/\n") os.Exit(1) } src := os.Args[1] out := os.Args[2] fmt.Println("src:", src) fmt.Println("out:", out) }