(args: T.List[str])
return result
gnustep-config returns a bunch of garbage args such as -O2 and so
        on. Drop everything that is not needed.
gnustep-config returns a bunch of garbage args such as -O2 and so
        on. Drop everything that is not needed.
gnustep - config returns a bunch of garbage args such as - O2 and so on . Drop everything that is not needed .
def filter_args(args: T.List[str]) -> T.List[str]:
        """gnustep-config returns a bunch of garbage args such as -O2 and so
        on. Drop everything that is not needed.
        """
        result = []
        for f in args:
            if f.startswith('-D') \
                    or f.startswith('-f') \
                    or f.startswith('-I') \
                    or f == '-pthread' \
                    or (f.startswith('-W') and not f == '-Wall'):
                result.append(f)
        return result
def filter_args ( args : T . List [ str ] ) -> T . List [ str ] : result = [ ] for f in args : if f . startswith ( '-D' ) or f . startswith ( '-f' ) or f . startswith ( '-I' ) or f == '-pthread' or ( f . startswith ( '-W' ) and not f == '-Wall' ) : result . append ( f ) return result