Skip to content

Instantly share code, notes, and snippets.

@IndianGuru
Last active April 22, 2016 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndianGuru/067657aa16a9c47a096d4bd836cdd470 to your computer and use it in GitHub Desktop.
Save IndianGuru/067657aa16a9c47a096d4bd836cdd470 to your computer and use it in GitHub Desktop.
First cut of program
package main
import (
"flag"
"fmt"
"os"
"path/filepath"
)
func main() {
flag.Usage = func() {
fmt.Fprintf(os.Stderr, "Usage: %s <path-to-image>\n", filepath.Base(os.Args[0]))
}
flag.Parse()
args := flag.Args()
if len(args) == 0 {
flag.Usage()
os.Exit(1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment