Modifying the top block

Hi everyone,
I created some blocks using c++, gr_modtools and used GRC in order to
define the functionality. Now I need to pass parameters to the graph by
console. I used as example wfm_rx_block so as to get the OptionParser
functionality. The problem is that is not working, when I use one of the
options I supposedly defined, I get:

Usage: top_block.py: [options]

top_block.py: error: no such option: -F

I put the OptionParser after the variables are declared and before the
blocks

If anyone knows where can I find some documentation or tutorial for what
I am doing it would be great.

Thanks


Este documento puede contener informacin privilegiada o confidencial.
Por tanto, usar esta informacin y sus anexos para propsitos ajenos a los
de la Universidad Icesi, divulgarla a personas a las cuales no se
encuentre destinado este correo o reproducirla total o parcialmente, se
encuentra prohibido en virtud de la legislacin vigente. La universidad
no asumir responsabilidad sobre informacin, opiniones o criterios
contenidos en este correo que no estn directamente relacionados con la
Icesi. Si usted no es el destinatario autorizado o por error recibe este
mensaje, por favor informe al remitente y posteriormente brrelo de su
sistema sin conservar copia del mismo.

Have you looked up the Python docs for that module?

http://docs.python.org/2/library/optparse.html

Cheers,
Ben

On Thu, Jan 31, 2013 at 6:39 AM, Juan Daniel Fernandez M. <