gseapy/__main__.py
def add_output_option(parser):
    """output option"""

    parser.add_argument("-o", "--outdir", dest="outdir", type=str, default='GSEApy_reports',
                        metavar='', action="store",
                        help="The GSEApy output directory. Default: the current working directory")
    parser.add_argument("-f", "--format", dest="format", type=str, metavar='', action="store",
                        choices=("pdf", "png", "jpeg", "eps", "svg"), default="pdf",
                        help="File extensions supported by Matplotlib active backend,\
                              choose from {'pdf', 'png', 'jpeg','ps', 'eps','svg'}. Default: 'pdf'.")
    parser.add_argument("--fs", "--figsize", action='store', nargs=2, dest='figsize',
                        metavar=('width', 'height'),type=float, default=(6.5, 6),
                        help="The figsize keyword argument need two parameters to define. Default: (6.5, 6)")
    parser.add_argument("--graph", dest = "graph", action="store", type=int, default=20, metavar='int',
                        help="Numbers of top graphs produced. Default: 20")
    parser.add_argument("--no-plot", action='store_true', dest='noplot', default=False,
                        help="Speed up computing by suppressing the plot output."+\
                             "This is useful only if data are interested. Default: False.")
    parser.add_argument("-v", "--verbose", action="store_true", default=False, dest='verbose',
                        help="Increase output verbosity, print out progress of your job", )
def add_output_option(parser):
    """output option"""

    parser.add_argument("-o", "--outdir", dest="outdir", type=str, default='GSEApy_reports',
                        metavar='', action="store",
                        help="The GSEApy output directory. Default: the current working directory")
    parser.add_argument("-f", "--format", dest="format", type=str, metavar='', action="store",
                        choices=("pdf", "png", "jpeg", "eps", "svg"), default="pdf",
                        help="File extensions supported by Matplotlib active backend,\
                              choose from {'pdf', 'png', 'jpeg','ps', 'eps','svg'}. Default: 'pdf'.")
    parser.add_argument("--fs", "--figsize", action='store', nargs=2, dest='figsize',
                        metavar=('width', 'height'),type=float, default=(6.5, 6),
                        help="The figsize keyword argument need two parameters to define. Default: (6.5, 6)")
    parser.add_argument("--graph", dest = "graph", action="store", type=int, default=20, metavar='int',
                        help="Numbers of top graphs produced. Default: 20")
    parser.add_argument("--no-plot", action='store_true', dest='noplot', default=False,
                        help="Speed up computing by suppressing the plot output."+\
                             "This is useful only if data are interested. Default: False.")
    parser.add_argument("-v", "--verbose", action="store_true", default=False, dest='verbose',
                        help="Increase output verbosity, print out progress of your job", )
output option