Skip to content

Commit

Permalink
Main: Use --path instead of positional
Browse files Browse the repository at this point in the history
 * Also puts a placeholder for the merge-todo argument

Signed-off-by: Glenn Vriesman <[email protected]>
  • Loading branch information
glvr182 committed Sep 30, 2019
1 parent 95ae806 commit f7f19bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ func main() {
flaggy.DefaultParser.ShowVersionWithVersionFlag = false

repoPath := "."
flaggy.AddPositionalValue(&repoPath, "path", 1, false, "Path of git repo")
flaggy.String(&repoPath, "p", "path", "Path of git repo")

dump := ""
flaggy.AddPositionalValue(&dump, "gitargs", 1, false, "Todo file")
flaggy.DefaultParser.PositionalFlags[0].Hidden = true

versionFlag := false
flaggy.Bool(&versionFlag, "v", "version", "Print the current version")
Expand Down

0 comments on commit f7f19bb

Please sign in to comment.