each positional arg gets its own help text in definition order
(self)
| 75 | self.assertMatchSingle(cmd, s.find_man_page("withargs")[0], matchedresult) |
| 76 | |
| 77 | def test_multiple_positionals(self): |
| 78 | """each positional arg gets its own help text in definition order""" |
| 79 | cmd = "withmultipos src.txt dst.txt" |
| 80 | matchedresult = [ |
| 81 | MR(0, 12, "withmultipos synopsis", "withmultipos"), |
| 82 | MR(13, 20, "source file(s) to copy", "src.txt"), |
| 83 | MR(21, 28, "destination path", "dst.txt"), |
| 84 | ] |
| 85 | |
| 86 | self.assertMatchSingle(cmd, s.find_man_page("withmultipos")[0], matchedresult) |
| 87 | |
| 88 | def test_multiple_positionals_variadic(self): |
| 89 | """extra args beyond the defined positionals reuse the last one; |
nothing calls this directly
no test coverage detected