montanaflynn / meme-generator

Generate memes in pure Golang
40 stars 6 forks source link

Accept user flags and arguments #2

Open montanaflynn opened 8 years ago

montanaflynn commented 8 years ago

The README is a lie, the real usage is as follows:

go run main.go creates a file called meme.png in the current working directory.

We want it to be like the README:

./mgen --meme fry --text "not sure if magick or golang" ./path/to/file.png

Will want to have docopt style short and long flags but the basic usage is thus:

Usage for meme-generator:
  meme-generator [options] ./path/to/file.png
montanaflynn commented 8 years ago

Added basic parsing in 6a5147c2d1800ca3181fc01d34c39bf26ef9d99b but it can still be cleaned up a bit around the edges.