mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-09 13:47:11 +02:00
Merge pull request #516 from glvr182/hotfix/path-not-positional
#514 Fix positional flag issue
This commit is contained in:
commit
8fe0e00cd9
6
main.go
6
main.go
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user