mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 09:44:21 +00:00 
			
		
		
		
	fix: Accept web-command cli flags if web-command is commited (#5200)
* fix: Accept web-command cli flags if web-command is commited * Added flags of default cmd CmdWeb to app-wide flags * If command *is* specified app-wide flags are ignored Resolves: #5065 Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de> * Removed style breaking newline * broken windows need to be fixed * provides requested change
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							6c90dd1f4a
						
					
				
				
					commit
					584844eada
				
			
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@@ -49,7 +49,7 @@ arguments - which can alternatively be run by running the subcommand web.`
 | 
			
		||||
		cmd.CmdGenerate,
 | 
			
		||||
		cmd.CmdMigrate,
 | 
			
		||||
	}
 | 
			
		||||
	app.Flags = append(app.Flags, []cli.Flag{}...)
 | 
			
		||||
	app.Flags = append(app.Flags, cmd.CmdWeb.Flags...)
 | 
			
		||||
	app.Action = cmd.CmdWeb.Action
 | 
			
		||||
	err := app.Run(os.Args)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user