From 3ef626895dbbee5d6090ff0145f1dc41bb44f900 Mon Sep 17 00:00:00 2001 From: Miles Barr Date: Fri, 20 Sep 2019 22:49:26 -0700 Subject: [PATCH] Fix add command in the fake-git example The argv constructed from the parent command should be used for argument parsing. --- examples/fake-git/fakegit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fake-git/fakegit.go b/examples/fake-git/fakegit.go index 92e1ab5..01bdf18 100644 --- a/examples/fake-git/fakegit.go +++ b/examples/fake-git/fakegit.go @@ -100,7 +100,7 @@ options: --ignore-missing check if - even missing - files are ignored in dry run ` - args, _ := docopt.ParseDoc(usage) + args, _ := docopt.ParseArgs(usage, argv, "") fmt.Println(args) return }