> On 8 September 2011 10:45, Paul Larson <[email protected]> wrote:
> 
> > 2597    +class list_tests(Command):
> > 2598    +    """
> > 2599    +    List available tests
> > 2600    +
> > 2601    +    .. program:: lava-test list-tests
> > 2602    +
> > 2603    +    Lists all available tests, grouping them by provider.
> > 2604    +    """
> > This causes some strange output in help:
> >
> >    list-tests          List available tests .. program:: lava-test
> > list-tests
> >                        Lists all available tests, grouping them by
> > provider.
> >
> then how to write the description, I thought the output format should be
> done by lava-tool :(

Look at the base command class. It has methods that use the docstring for 
various things. You can simply override them to keep both sensible 
documentation and sensible built-in help commands.
-- 
https://code.launchpad.net/~le-chi-thu/lava-test/using-lava-tool/+merge/74306
Your team Linaro Validation Team is requested to review the proposed merge of 
lp:~le-chi-thu/lava-test/using-lava-tool into lp:lava-test.

_______________________________________________
Mailing list: https://launchpad.net/~linaro-release
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~linaro-release
More help   : https://help.launchpad.net/ListHelp

Reply via email to