mixcoatl/utils.py
def add_argparse_output_formats(parser):
    """Add the supported cli output formats to the :attr:`parser` ArgumentParser object. Flags added are:
    `--json --xml --csv`

    :param ArgumentParser parser: object parser to append flags to"""

    parser.add_argument('--json', dest='format', action='store_const', const='json',
                        help='print API response in JSON format.')
    parser.add_argument('--xml', dest='format', action='store_const', const='xml',
                    help='print API response in XML format.')
    parser.add_argument('--csv', dest='format', action='store_const', const='csv',
                    help='print API response in CSV format.')
Add the supported cli output formats to the :attr:`parser` ArgumentParser object. Flags added are:
    `--json --xml --csv`

    :param ArgumentParser parser: object parser to append flags to
Add the supported cli output formats to the :attr:`parser` ArgumentParser object.
Add the supported cli output formats to the : attr : ` parser ` ArgumentParser object .
def add_argparse_output_formats(parser):
    parser.add_argument('--json', dest='format', action='store_const', const='json',
                        help='print API response in JSON format.')
    parser.add_argument('--xml', dest='format', action='store_const', const='xml',
                    help='print API response in XML format.')
    parser.add_argument('--csv', dest='format', action='store_const', const='csv',
                    help='print API response in CSV format.')
def add_argparse_output_formats ( parser ) : parser . add_argument ( '--json' , dest = 'format' , action = 'store_const' , const = 'json' , help = 'print API response in JSON format.' ) parser . add_argument ( '--xml' , dest = 'format' , action = 'store_const' , const = 'xml' , help = 'print API response in XML format.' ) parser . add_argument ( '--csv' , dest = 'format' , action = 'store_const' , const = 'csv' , help = 'print API response in CSV format.' )
Add the supported cli output formats to the :attr:`parser` ArgumentParser object.
Add the supported cli output formats to the : attr : ` parser ` ArgumentParser object .
"""Add the supported cli output formats to the :attr:`parser` ArgumentParser object. Flags added are:
    `--json --xml --csv`

    :param ArgumentParser parser: object parser to append flags to"""
parser
object parser to append flags to
object parser to append flags to