Exemple #1
0
    '-q',
    '--quiet',
    dest='quiet',
    action='count',
    default=0,
    help=('Give less output. Option is additive, and can be used up to 3'
          ' times (corresponding to WARNING, ERROR, and CRITICAL logging'
          ' levels).'),
)  # type: Any

progress_bar = partial(
    Option,
    '--progress-bar',
    dest='progress_bar',
    type='choice',
    choices=list(BAR_TYPES.keys()),
    default='on',
    help=('Specify type of progress to be displayed [' +
          '|'.join(BAR_TYPES.keys()) + '] (default: %default)'),
)  # type: Any

log = partial(Option,
              "--log",
              "--log-file",
              "--local-log",
              dest="log",
              metavar="path",
              help="Path to a verbose appending log.")  # type: Any

no_input = partial(
    Option,
    dest="quiet",
    action="count",
    default=0,
    help=(
        "Give less output. Option is additive, and can be used up to 3"
        " times (corresponding to WARNING, ERROR, and CRITICAL logging"
        " levels)."
    ),
)  # type: Callable[..., Option]

progress_bar = partial(
    Option,
    "--progress-bar",
    dest="progress_bar",
    type="choice",
    choices=list(BAR_TYPES.keys()),
    default="on",
    help=(
        "Specify type of progress to be displayed ["
        + "|".join(BAR_TYPES.keys())
        + "] (default: %default)"
    ),
)  # type: Callable[..., Option]

log = partial(
    Option,
    "--log",
    "--log-file",
    "--local-log",
    dest="log",
    metavar="path",
Exemple #3
0
    dest='quiet',
    action='count',
    default=0,
    help=(
        'Give less output. Option is additive, and can be used up to 3'
        ' times (corresponding to WARNING, ERROR, and CRITICAL logging'
        ' levels).'
    ),
)  # type: Callable[..., Option]

progress_bar = partial(
    Option,
    '--progress-bar',
    dest='progress_bar',
    type='choice',
    choices=list(BAR_TYPES.keys()),
    default='on',
    help=(
        'Specify type of progress to be displayed [' +
        '|'.join(BAR_TYPES.keys()) + '] (default: %default)'
    ),
)  # type: Callable[..., Option]

log = partial(
    Option,
    "--log", "--log-file", "--local-log",
    dest="log",
    metavar="path",
    help="Path to a verbose appending log."
)  # type: Callable[..., Option]
    "-q",
    "--quiet",
    dest="quiet",
    action="count",
    default=0,
    help=("Give less output. Option is additive, and can be used up to 3"
          " times (corresponding to WARNING, ERROR, and CRITICAL logging"
          " levels)."),
)  # type: Callable[..., Option]

progress_bar = partial(
    Option,
    "--progress-bar",
    dest="progress_bar",
    type="choice",
    choices=list(BAR_TYPES.keys()),
    default="on",
    help=("Specify type of progress to be displayed [" +
          "|".join(BAR_TYPES.keys()) + "] (default: %default)"),
)  # type: Callable[..., Option]

log = partial(
    Option,
    "--log",
    "--log-file",
    "--local-log",
    dest="log",
    metavar="path",
    help="Path to a verbose appending log.",
)  # type: Callable[..., Option]