Parse arguments

def _get_dependencies_from_args(self, args):
        """ Parse arguments """
        if not isinstance(args, list):
            raise TypeError('"args" must be a list')

        dependency_names = set()
        for arg in args:
            new_names = self._check_arg(arg)
            dependency_names.update(new_names)
        return dependency_names