Skip to content

Commit 3ef6268

Browse files
author
Miles Barr
authored
Fix add command in the fake-git example
The argv constructed from the parent command should be used for argument parsing.
1 parent ee0de3b commit 3ef6268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/fake-git/fakegit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ options:
100100
--ignore-missing check if - even missing - files are ignored in dry run
101101
`
102102

103-
args, _ := docopt.ParseDoc(usage)
103+
args, _ := docopt.ParseArgs(usage, argv, "")
104104
fmt.Println(args)
105105
return
106106
}

0 commit comments

Comments
 (0)