diff options
Diffstat (limited to 'cmd/diff.go')
-rw-r--r-- | cmd/diff.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cmd/diff.go b/cmd/diff.go new file mode 100644 index 0000000..7caf96b --- /dev/null +++ b/cmd/diff.go @@ -0,0 +1,21 @@ +package cmd + +import ( + "flag" + "fmt" +) + +func Diff(params []string) { + flags := flag.NewFlagSet("diff", flag.ExitOnError) + + var walk bool + + const WALK_HELP = "walk backwards through the diff history" + + flags.BoolVar(&walk, "walk", false, WALK_HELP); + flags.BoolVar(&walk, "w", false, WALK_HELP); + + flags.Parse(params); + + fmt.Printf("Your flag is: %t", walk); +} |