Skip to content

Commit cc27f34

Browse files
committed
Put the --with-cursor warning on stderr, not stdout
1 parent f0e8652 commit cc27f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mss/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def main(*args: str) -> int: # noqa: PLR0912
5151
)
5252
cli_args.add_argument("-m", "--monitor", default=0, type=int, help="the monitor to screenshot")
5353
cli_args.add_argument("-o", "--output", default="monitor-{mon}.png", help="the output file name")
54-
cli_args.add_argument("--with-cursor", action="store_true", help="include the cursor")
54+
cli_args.add_argument("--with-cursor", default=None, action="store_true", help="include the cursor")
5555
cli_args.add_argument(
5656
"-q",
5757
"--quiet",
@@ -91,7 +91,7 @@ def main(*args: str) -> int: # noqa: PLR0912
9191

9292
if options.with_cursor is not None and platform.system().lower() != "linux":
9393
if not options.quiet:
94-
print("[WARNING] --with-cursor is only supported on Linux; ignoring.")
94+
print("[WARNING] --with-cursor is only supported on Linux; ignoring.", file=sys.stderr)
9595
options.with_cursor = None
9696

9797
mss_kwargs = {"backend": options.backend}

0 commit comments

Comments
 (0)