<p dir="ltr"><br>
On Oct 11, 2013 6:04 PM, "Alex" <<a href="mailto:la6470@gmail.com">la6470@gmail.com</a>> wrote:<br>
><br>
> Is that actually doing something or parsing the sub commands?<br>
><br>
> I think after args is initialized it is probably the args.func calls that actually does something. For example the following line in the main:<br>
><br>
> args.func(self.cs, args)<br>
><br>
> What do you think is the .func method?<br>
></p>
<p dir="ltr"><a href="https://github.com/openstack/python-novaclient/blob/master/novaclient/shell.py#L473">https://github.com/openstack/python-novaclient/blob/master/novaclient/shell.py#L473</a></p>
<p dir="ltr">- Noorul</p>
<p dir="ltr">><br>
> On Oct 11, 2013, at 3:07 AM, Noorul Islam K M <<a href="mailto:noorul@noorul.com">noorul@noorul.com</a>> wrote:<br>
><br>
> > Alex <<a href="mailto:la6470@gmail.com">la6470@gmail.com</a>> writes:<br>
> ><br>
> >> Yes , this method seems to look for the corresponding action but still doesn't seem to be the one actually calling them.<br>
> >><br>
> ><br>
> > Are you looking for this which is inside **main** method?<br>
> ><br>
> > args = subcommand_parser.parse_args(argv)<br>
> ><br>
> > Thanks and Regards<br>
> > Noorul<br>
> ><br>
> >> Regards<br>
> >> Al<br>
> >><br>
> >><br>
> >><br>
> >> On Oct 10, 2013, at 11:07 PM, Noorul Islam K M <<a href="mailto:noorul@noorul.com">noorul@noorul.com</a>> wrote:<br>
> >><br>
> >>> Alex <<a href="mailto:la6470@gmail.com">la6470@gmail.com</a>> writes:<br>
> >>><br>
> >>>> Thank you Noorul. I looked at the review. My question is that in openstackcomputeshell.main which line call the v1_1/ shell.py.<function>?<br>
> >>>><br>
> >>><br>
> >>> I would look at get_subcommand_parser() method.<br>
> >>><br>
> >>> Thanks and Regards<br>
> >>> Noorul<br>
> >>><br>
> >>>><br>
> >>>><br>
> >>>> On Oct 10, 2013, at 9:03 PM, Noorul Islam K M <<a href="mailto:noorul@noorul.com">noorul@noorul.com</a>> wrote:<br>
> >>>><br>
> >>>>> A L <<a href="mailto:la6470@gmail.com">la6470@gmail.com</a>> writes:<br>
> >>>>><br>
> >>>>>> Dear Openstack Dev Gurus,<br>
> >>>>>><br>
> >>>>>> I am trying to understand the python novaclient code. Can someone please<br>
> >>>>>> point me to where in openstackcomputeshell class in shell.py does the<br>
> >>>>>> actual function or class related to an argument gets called?<br>
> >>>>>><br>
> >>>>><br>
> >>>>> This review [1] is something I submitted and it adds a sub command. May<br>
> >>>>> be this will give you some clue.<br>
> >>>>><br>
> >>>>> [1] <a href="https://review.openstack.org/#/c/40181/">https://review.openstack.org/#/c/40181/</a><br>
> >>>>><br>
> >>>>> Thanks and Regards<br>
> >>>>> Noorul<br>
</p>