mirror of
				https://github.com/jesseduffield/lazygit.git
				synced 2025-10-30 23:57:43 +02:00 
			
		
		
		
	Merge pull request #516 from glvr182/hotfix/path-not-positional
#514 Fix positional flag issue
This commit is contained in:
		
							
								
								
									
										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") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user