mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Backport #27914 by @fashberg This Fixes #27913 This commit updates `environment-to-ini` to be compatible with update urfave/cli/v2 Doc: <https://cli.urfave.org/v2/examples/combining-short-options/> Co-authored-by: Folke <folke@ashberg.de>
This commit is contained in:
		@@ -47,22 +47,26 @@ func main() {
 | 
				
			|||||||
	on the configuration cheat sheet.`
 | 
						on the configuration cheat sheet.`
 | 
				
			||||||
	app.Flags = []cli.Flag{
 | 
						app.Flags = []cli.Flag{
 | 
				
			||||||
		&cli.StringFlag{
 | 
							&cli.StringFlag{
 | 
				
			||||||
			Name:  "custom-path, C",
 | 
								Name:    "custom-path",
 | 
				
			||||||
 | 
								Aliases: []string{"C"},
 | 
				
			||||||
			Value:   setting.CustomPath,
 | 
								Value:   setting.CustomPath,
 | 
				
			||||||
			Usage:   "Custom path file path",
 | 
								Usage:   "Custom path file path",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		&cli.StringFlag{
 | 
							&cli.StringFlag{
 | 
				
			||||||
			Name:  "config, c",
 | 
								Name:    "config",
 | 
				
			||||||
 | 
								Aliases: []string{"c"},
 | 
				
			||||||
			Value:   setting.CustomConf,
 | 
								Value:   setting.CustomConf,
 | 
				
			||||||
			Usage:   "Custom configuration file path",
 | 
								Usage:   "Custom configuration file path",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		&cli.StringFlag{
 | 
							&cli.StringFlag{
 | 
				
			||||||
			Name:  "work-path, w",
 | 
								Name:    "work-path",
 | 
				
			||||||
 | 
								Aliases: []string{"w"},
 | 
				
			||||||
			Value:   setting.AppWorkPath,
 | 
								Value:   setting.AppWorkPath,
 | 
				
			||||||
			Usage:   "Set the gitea working path",
 | 
								Usage:   "Set the gitea working path",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		&cli.StringFlag{
 | 
							&cli.StringFlag{
 | 
				
			||||||
			Name:  "out, o",
 | 
								Name:    "out",
 | 
				
			||||||
 | 
								Aliases: []string{"o"},
 | 
				
			||||||
			Value:   "",
 | 
								Value:   "",
 | 
				
			||||||
			Usage:   "Destination file to write to",
 | 
								Usage:   "Destination file to write to",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user