parser.add_argument("-l","--img-lookup-dirs",help="Image lookup directories. When processing images, the program will try to find the image in them first. Always looks for images in the same folder as the markdown file.",nargs="+",default=[])
parser.add_argument("-p","--img-public-dir",help="Directory to put processed images into. The program will overwrite images, whose dependencies are newer.",default="public")
parser.add_argument("-c","--img-cache-dir",help="Directory to cache processed images and intermediate products. The program will overwrite files, whose dependencies are newer.",default="cache")
parser.add_argument("--katex-server",action='store_true',help="Starts a KaTeX server and prints the socket filename onto stdout. Useful for running formatitko many times without starting the KaTeX server each time.")
parser.add_argument("-k","--katex-socket",help="The KaTeX server socket filename obtained by running with `--katex-server`.")
parser.add_argument("input_filename",help="The markdown file to process.",nargs="?"if"--katex-server"insys.argvelseNone)