[Piglit] [PATCH v2 04/11] piglit-summary-py: Use the new summary class to generate HTML

Ken Phillis Jr kphillisjr at gmail.com
Fri May 17 13:21:15 PDT 2013


I am wondering...

Where is the help information over the lists file? The best placement
to show an Example list file is to use the epilog argument to the
ArgumentParser, and set the formatter_class to
"argparse.RawDescriptionHelpFormatter" Documentation on this is as
follows...

Argument Parser Epilog information:
http://docs.python.org/dev/library/argparse.html#epilog

ArgumentParser formatter_class information:
http://docs.python.org/dev/library/argparse.html#formatter-class

On Fri, May 17, 2013 at 11:31 AM, Dylan Baker <baker.dylan.c at gmail.com> wrote:
> Drops almost all of the code used in this file, all of that
> functionality is now handled in the summary class. Instead, the majority
> of this file is just the argparse instance, and a few short lines
> calling the new summary class.
>
> V2: Fixes the -l/--list syntax
>
> Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
> ---
>  piglit-summary-html.py | 284 ++++++-------------------------------------------
>  1 file changed, 32 insertions(+), 252 deletions(-)
>
> diff --git a/piglit-summary-html.py b/piglit-summary-html.py
> index 86555e3..77d63d0 100755
> --- a/piglit-summary-html.py
> +++ b/piglit-summary-html.py
[ Trimmed ]
>  def main():
>      parser = argparse.ArgumentParser()
[ Trimmed ]
The argparse.ArgumentParser here needs a small update. This is where
an the epilog and formatter_class function parameters need to be
defined in order to let users know how to format the list file.


More information about the Piglit mailing list