def do_sub_add(self, raw_args):
        """Subscribe to a published topic.

        Note that with ZMQ (libzmq) versions >= 3.0, topics that are not
        subscribed to by any client are not published (done automatically
        at the server).

        :param raw_args: Commands string with topic name to add.
        :type raw_args: string

        """
        # Get and validate arguments
        try:
            topic = raw_args.split()[0]
        except (ValueError, __HOLE__):
            print "Invalid command, see help [cmd]."
            return
        self.sub_client.add_topic(topic)
dataset/ETHPy150Open IEEERobotics/bot/bot/interface/cli.py/CLI.do_sub_add