mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	management: Remove the parameter required from add_user_list_args.
We remove an unecessary "required" paramter from this function because as seen in the get_users() function right below, you have to pass either -u/--users or -a/--all-users, meaning there should never be a reason to require --users.
This commit is contained in:
		@@ -44,7 +44,6 @@ You can use the command list_realms to find ID of the realms in this server."""
 | 
			
		||||
            help=help)
 | 
			
		||||
 | 
			
		||||
    def add_user_list_args(self, parser: ArgumentParser,
 | 
			
		||||
                           required: bool=False,
 | 
			
		||||
                           help: Optional[str]=None,
 | 
			
		||||
                           all_users_arg: bool=True,
 | 
			
		||||
                           all_users_help: Optional[str]=None) -> None:
 | 
			
		||||
@@ -54,7 +53,6 @@ You can use the command list_realms to find ID of the realms in this server."""
 | 
			
		||||
        parser.add_argument(
 | 
			
		||||
            '-u', '--users',
 | 
			
		||||
            dest='users',
 | 
			
		||||
            required=required,
 | 
			
		||||
            type=str,
 | 
			
		||||
            help=help)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user