Fix login add always go interactive (#221)
				
					
				
			Flags are not Args Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/221 Reviewed-by: Norwin <noerw@noreply.gitea.io> Reviewed-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		
							parent
							
								
									03ec6d0eee
								
							
						
					
					
						commit
						136688997c
					
				| @ -65,7 +65,7 @@ var CmdLoginAdd = cli.Command{ | ||||
| 
 | ||||
| func runLoginAdd(ctx *cli.Context) error { | ||||
| 	// if no args create login interactive | ||||
| 	if ctx.Args().Len() == 0 { | ||||
| 	if ctx.NumFlags() == 0 { | ||||
| 		return interact.CreateLogin() | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 6543
						6543