From 7103939a6e5373ceea87a9a1c4d324b3f682a60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20S=C3=A1lyi?= Date: Sat, 8 Apr 2023 06:28:29 +0200 Subject: [PATCH] Add documentation about logging errors to stderr --- README.md | 2 ++ src/cli.rs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a2843e7..d4b39dd 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ It is recommended to edit the wallpaper images in a dedicated image editor. Neve $ multibg-sway --contrast=-25 --brightness=-60 ~/my_wallpapers +In case of errors multibg-sway logs to stderr and tries to continue. One may wish to redirect stderr if multibg-sway is being run as a daemon. + ## Installation - With Rust toolchain: - For Arch Linux from AUR: diff --git a/src/cli.rs b/src/cli.rs index 28e4a09..2f16fce 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -66,7 +66,9 @@ It is recommended to edit the wallpaper images in a dedicated image editor. Nevertheless the contrast and brightness might be adjusted here: $ multibg-sway --contrast=-25 --brightness=-60 ~/my_wallpapers -")] + +In case of errors multibg-sway logs to stderr and tries to continue. +One may wish to redirect stderr if multibg-sway is being run as a daemon.")] pub struct Cli { /// adjust contrast, eg. -c=-25 (default: 0) #[arg(short, long)]