Adds the status parser to the given subparsers object.
(subparsers, repo)
| 17 | |
| 18 | |
| 19 | def parser(subparsers, repo): |
| 20 | """Adds the status parser to the given subparsers object.""" |
| 21 | desc = 'show status of the repo' |
| 22 | status_parser = subparsers.add_parser( |
| 23 | 'status', help=desc, description=desc.capitalize()) |
| 24 | status_parser.add_argument( |
| 25 | 'paths', nargs='*', help='the specific path(s) to status', |
| 26 | action=helpers.PathProcessor, repo=repo) |
| 27 | status_parser.set_defaults(func=main) |
| 28 | |
| 29 | |
| 30 | def main(args, repo): |
nothing calls this directly
no outgoing calls
no test coverage detected