def escape_args(cls, *args):
        """
        Transforms the given list of unescaped arguments into a
        suitable, shell-escaped str that is ready to be append
        to the command.

        Removes whitespaces and shell metacharacters for each argument
        in given args.
        """
        escaped_args = [shlex.quote(str(arg)) for arg in args]

        return " ".join(escaped_args)