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 Martinez < jdfernan...@icesi.edu.co> wrote: > 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 información privilegiada o confidencial. Por > tanto, usar esta información y sus anexos para propósitos 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 legislación vigente. La universidad no asumirá > responsabilidad sobre información, opiniones o criterios contenidos en este > correo que no estén 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 bórrelo de su sistema sin conservar > copia del mismo. > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio