From 0d140b9a0201aeb4f4d095119450e87feb370af8 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Thu, 4 Sep 2025 09:44:19 -0400 Subject: [PATCH] Document stdin formatting. Support for formatting stdin was implemented in #5, but it's not obvious that this is supported from `--help`. --- src/mdformat/_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdformat/_cli.py b/src/mdformat/_cli.py index 74a6e28..7a94c08 100644 --- a/src/mdformat/_cli.py +++ b/src/mdformat/_cli.py @@ -206,7 +206,7 @@ def make_arg_parser( epilog=(epilog if epilog else None), formatter_class=argparse.RawDescriptionHelpFormatter, ) - parser.add_argument("paths", nargs="*", help="files to format") + parser.add_argument("paths", nargs="*", help="files to format, or '-' for stdin") parser.add_argument( "--check", action="store_true", help="do not apply changes to files" )