def cmd(send, msg, args):
    """Gets a stock quote.

    Syntax: {command} [symbol]
    Powered by markit on demand (http://dev.markitondemand.com)

    """
    parser = arguments.ArgParser(args['config'])
    parser.add_argument('stock', nargs='?', default=random_stock())
    try:
        cmdargs = parser.parse_args(msg)
    except arguments.ArgumentException as e:
        send(str(e))
        return
    send(gen_stock(cmdargs.stock))
def cmd ( send , msg , args ) : parser = arguments . ArgParser ( args [ 'config' ] ) parser . add_argument ( 'stock' , nargs = '?' , default = random_stock ( ) ) try : cmdargs = parser . parse_args ( msg ) except arguments . ArgumentException as e : send ( str ( e ) ) return send ( gen_stock ( cmdargs . stock ) )
Gets a stock quote.

    Syntax: {command} [symbol]
    Powered by markit on demand (http://dev.markitondemand.com)