# Path: invtool/tests/test_data.py
# TEST_DESCRIPTION = '"This is a description"'
# 
# TEST_STR = lambda: random_str()


from invtool.tests.test_data import TEST_DESCRIPTION, TEST_STR
from datetime import datetime
import argparse
        return 'description', TEST_DESCRIPTION

    return add_desc_arg, build_extractor(field_name, 'description'), test_data


def comment_argument(field_name):
    def add_com_arg(parser, **kwargs):
        parser.add_argument(
            '--comment', default="", type=str,
            dest='comment', help="Use this to record why a change is "
            "being made", required=False
        )

    def test_data():
        return 'comment', TEST_DESCRIPTION  # Reuse this test data

    return add_com_arg, build_extractor(field_name, 'comment'), test_data


def general_argument(field_name, help, type=lambda x: x, test_data=None):
    real_fname = field_name.replace('-', '_')

    def add_srt_arg(parser, **kwargs):
        parser.add_argument(
            '--{0}'.format(field_name), default="", type=str,
            dest=real_fname, required=False, help=help
        )

    if test_data is None:
        def test_data_fun():

# Path: invtool/tests/test_data.py
# TEST_DESCRIPTION = '"This is a description"'
# 
# TEST_STR = lambda: random_str()


# Path: invtool/lib/options.py
from invtool.tests.test_data import TEST_DESCRIPTION, TEST_STR
from datetime import datetime
import argparse

        return 'description', TEST_DESCRIPTION

    return add_desc_arg, build_extractor(field_name, 'description'), test_data


def comment_argument(field_name):
    def add_com_arg(parser, **kwargs):
        parser.add_argument(
            '--comment', default="", type=str,
            dest='comment', help="Use this to record why a change is "
            "being made", required=False
        )

    def test_data():
        return 'comment', TEST_DESCRIPTION  # Reuse this test data

    return add_com_arg, build_extractor(field_name, 'comment'), test_data


def general_argument(field_name, help, type=lambda x: x, test_data=None):
    real_fname = field_name.replace('-', '_')

    def add_srt_arg(parser, **kwargs):
        parser.add_argument(
            '--{0}'.format(field_name), default="", type=str,
            dest=real_fname, required=False, help=help
        )

    if test_data is None:
        def test_data_fun():

            return field_name, TEST_STR()  # Reuse this test data