def parse_host_args(self, *args):
        """
        Splits out the patch subcommand and returns a comma separated list of host_strings
        """
        self.subcommand = None
        new_args = args
        try:
            sub = args[0]
            if sub in ['project','templates','static','media','wsgi','webconf']:
                self.subcommand = args[0]
                new_args = args[1:]
        except IndexError:
            pass
        
        return ','.join(new_args)
def parse_host_args ( self , * args ) : self . subcommand = None new_args = args try : sub = args [ 0 ] if sub in [ 'project' , 'templates' , 'static' , 'media' , 'wsgi' , 'webconf' ] : self . subcommand = args [ 0 ] new_args = args [ 1 : ] except IndexError : pass return ',' . join ( new_args )
Splits out the patch subcommand and returns a comma separated list of host_strings