def parse_args(parser): parser.add_argument('remote_url', help='repo to be cloned') parser.add_argument('mount_point', help='where the repo should be mount') parser.add_argument('-v', '--version', action='version', version='%(prog)s ' + __version__) parser.add_argument('-o', help='other options: repo_path, user, ' 'group, branch, max_size, max_offset, ' 'fetch_timeout, merge_timeout, ssh_user') return Args(parser)
def parse_args(parser): parser.add_argument("remote_url", help="repo to be cloned") parser.add_argument("mount_point", help="where the repo should be mount") parser.add_argument("-v", "--version", action="version", version="%(prog)s " + __version__) parser.add_argument( "-o", help="other options: repo_path, user, " "group, branch, max_size, max_offset, " "fetch_timeout, merge_timeout, ssh_user", ) return Args(parser)