diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2019-09-30 21:31:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 21:31:43 +0200 |
commit | 8fe0e00cd9484c231c79c77ad3bc3dd601f0451a (patch) | |
tree | 331d4d6365ac4efc683352ceb80f11476eaa47b2 | |
parent | 95ae806e09380e6c1602a91af6d34e8ffd770274 (diff) | |
parent | f7f19bbc02aced80d86afb5aa92fff25fd7b616d (diff) |
Merge pull request #516 from glvr182/hotfix/path-not-positional
#514 Fix positional flag issue
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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") |