(self, x)
return Args(_args, no_argv=True)
Returns all arguments containing given string (or list thereof)
Returns all arguments containing given string (or list thereof)
Returns all arguments containing given string ( or list thereof )
def all_with(self, x):
        """Returns all arguments containing given string (or list thereof)"""

        _args = []

        for arg in self.all:
            if is_collection(x):
                for _x in x:
                    if _x in arg:
                        _args.append(arg)
                        break
            else:
                if x in arg:
                    _args.append(arg)

        return Args(_args, no_argv=True)
def all_with ( self , x ) : _args = [ ] for arg in self . all : if is_collection ( x ) : for _x in x : if _x in arg : _args . append ( arg ) break else : if x in arg : _args . append ( arg ) return Args ( _args , no_argv = True )