<reponame>faircloth-lab/itero
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
(c) 2018 <NAME> || http://faircloth-lab.org/

All rights reserved.

This code is distributed under a 3-clause BSD license. Please see
LICENSE.txt for more information.

Created on 14 April 2018 16:10 CDT (-0500)
"""

from __future__ import absolute_import

descr = "Get help info on a itero command."


def configure_parser(sub_parsers):
    p = sub_parsers.add_parser(
        'help',
        description=descr,
        help=descr
    )
    p.add_argument(
        "command",
        metavar="COMMAND",
        action="store",
        nargs='?',
        help="print help information for COMMAND "
             "(same as: itero COMMAND -h)",
    )
    p.set_defaults(func=execute)


def execute(args, parser):
    if not args.command:
        parser.print_help()
        return

    import sys
    import subprocess

    subprocess.call([sys.executable, sys.argv[0], args.command, '-h'])
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
(c) 2018 <NAME> || http://faircloth-lab.org/

All rights reserved.

This code is distributed under a 3-clause BSD license. Please see
LICENSE.txt for more information.

Created on 14 April 2018 16:10 CDT (-0500)
"""

from __future__ import absolute_import

descr = "Get help info on a itero command."


def configure_parser(sub_parsers):
    p = sub_parsers.add_parser(
        'help',
        description=descr,
        help=descr
    )
    p.add_argument(
        "command",
        metavar="COMMAND",
        action="store",
        nargs='?',
        help="print help information for COMMAND "
             "(same as: itero COMMAND -h)",
    )
    p.set_defaults(func=execute)


def execute(args, parser):
    if not args.command:
        parser.print_help()
        return

    import sys
    import subprocess

    subprocess.call([sys.executable, sys.argv[0], args.command, '-h'])
#!/usr/bin/env python # -*- coding: utf-8 -*- (c) 2018 <NAME> || http://faircloth-lab.org/  All rights reserved.  This code is distributed under a 3-clause BSD license. Please see LICENSE.txt for more information.  Created on 14 April 2018 16:10 CDT (-0500)