mdsh doc.md | Prose, code and output | No |
mdsh --hide-code doc.md | Prose and output | No |
mdsh --hide-output doc.md | Prose and code | No |
mdsh --hide-code --hide-output doc.md | Prose only; nothing runs | No |
mdsh --no-run doc.md (or -n) | Prose, code and the output saved by -w; nothing runs | No |
mdsh -n -o view.md doc.md | Nothing; saves what -n prints to view.md | No |
mdsh -w doc.md | Progress on stderr | Yes: output rewritten |
mdsh -o out.md doc.md | Progress on stderr | No; writes what -w would to out.md |
mdsh --pdf doc.pdf doc.md | Nothing; lays out what it would print as doc.pdf | No; with -w or -o it writes those too |
mdsh --html doc.html doc.md | Nothing; writes what it would print as a standalone doc.html | No; with -w or -o it writes those too |
mdsh --only build doc.md | That block, plus what it depends on | Per flags |
mdsh --yes doc.md | Runs confirm blocks without asking | Per flags |
mdsh --step doc.md | Asks before every block: run, skip or stop | Per flags |
mdsh --source defs.zsh doc.md | Sources defs.zsh into every shell before its first block; repeatable | Per flags |
mdsh -i doc.md | A full-screen UI: pick blocks and run them, see Interactive mode | Yes: output saved after each block |
mdsh completion bash|zsh | A completion script | No |
mdsh --version | The version | No |