iterative / shtab

↔️ Automagic shell tab completion for Python CLI applications
https://docs.iterative.ai/shtab
Other
363 stars 35 forks source link

[feature] %(default)s should be replaced with action.default. #104

Closed Freed-Wu closed 1 year ago

Freed-Wu commented 2 years ago
    parser.add_argument(
        '--color', default='auto',
        type=use_color,
        metavar='{' + ','.join(COLOR_CHOICES) + '}',
        help='Whether to use color in output.  Defaults to `%(default)s`.',
    )

should replace %(default)s as action.default.