|
115 | 115 | parser.add_argument('--readme', nargs='?', type=str, help="The Markdown input file to render.")
|
116 | 116 | parser.add_argument('--engine', type=str, default="latex")
|
117 | 117 | parser.add_argument('--output', type=str, default="README_GH.md", help="The output file. Defaults to README_GH.md")
|
118 |
| - parser.add_argument('--usepackage', type=list, action='append', default=['amsmath', 'amssymb'], help="Include a LaTeX package. Comes with amsmath and amssymb.") |
119 |
| - parser.add_argument('--svgdir', nargs=1, type=str, default='svgs', help="Name of the folder to save the output svgs into. Defaults to svgs.") |
120 |
| - parser.add_argument('--branch', nargs=1, type=str, help="[EXPERIMENTAL] Which branch to save the svgs into. Used by the git-hook system. Defaults to the current branch.") |
121 |
| - parser.add_argument('--username', nargs=1, type=str, help="Github username. Can be inferred.") |
122 |
| - parser.add_argument('--project', nargs=1, type=str, help="Github project. Can be inferred.") |
| 118 | + parser.add_argument('--usepackage', type=str, action='append', default=['amsmath', 'amssymb'], help="Include a LaTeX package. Comes with amsmath and amssymb.") |
| 119 | + parser.add_argument('--svgdir', type=str, default='svgs', help="Name of the folder to save the output svgs into. Defaults to svgs.") |
| 120 | + parser.add_argument('--branch', type=str, help="[EXPERIMENTAL] Which branch to save the svgs into. Used by the git-hook system. Defaults to the current branch.") |
| 121 | + parser.add_argument('--username', type=str, help="Github username. Can be inferred.") |
| 122 | + parser.add_argument('--project', type=str, help="Github project. Can be inferred.") |
123 | 123 | parser.add_argument('--nocdn', action='store_true', help="Use local relative path rather than rawgit's CDN. Useful for debugging.")
|
124 | 124 | parser.add_argument('--htmlize', action='store_true', help="Output a md.html file for you to preview. Useful for debugging.")
|
125 | 125 | parser.add_argument('--valign', action='store_true', help="Use the valign attribute instead of the align=middle trick. Only works on Chrome.")
|
126 | 126 | parser.add_argument('--rerender', action='store_true', help="Even if equations have already been compiled, recompile them anyways.")
|
127 | 127 | parser.add_argument('--bustcache', action='store_true', help="Github has a latency before it will serve up the new asset. This option allows us to circumvent its caching.")
|
128 | 128 | parser.add_argument('--add-git-hook', action='store_true', help="Automatically generates a post-commit git hook with the rest of the arguments. In the future, git commit will automatically trigger readme2tex if the input file is changed.")
|
129 |
| - parser.add_argument('--generate-script', nargs=1, help="Same as add-git-hook, but dumps it as a normal script") |
| 129 | + parser.add_argument('--generate-script', help="Same as add-git-hook, but dumps it as a normal script") |
130 | 130 | parser.add_argument('input', nargs='?', type=str, help="Same as --readme")
|
131 | 131 |
|
132 | 132 | args = parser.parse_args()
|
|
0 commit comments