(self)
| 220 | assert result == ("-p [STRING], --optval[=STRING]", "") |
| 221 | |
| 222 | def underscored_args(self): |
| 223 | c = Context(args=(Argument("i_have_underscores", help="yup"),)) |
| 224 | result = c.help_for("--i-have-underscores") |
| 225 | assert result == ("--i-have-underscores=STRING", "yup") |
| 226 | |
| 227 | def true_default_args(self): |
| 228 | c = Context(args=(Argument("truthy", kind=bool, default=True),)) |