aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-02 02:17:19 +0100
committerne_mene <[email protected]>2026-03-02 02:17:19 +0100
commitf1a34291917635b5d69e952b61df2017a98db885 (patch)
treeea41de1738cd83625c78f4cc7b3c3440106c2667
parent8869f8e097fb5c76a274689f35c831dad9cc5c21 (diff)
tsarc --silent flag
-rw-r--r--src/pipe.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pipe.c b/src/pipe.c
index 70b9483..a38415a 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -80,4 +80,11 @@ void make_change(char argv[MAX_ARGS][MAX_ARG_LEN], int argc) {
if (strcmp(cmd, "config") == 0) {
set_config(argv, argc);
}
+
+ // if silent just check again
+ for (int i = 0; i < argc; i++) {
+ if (strcmp(argv[i], "--silent") == 0 || strcmp(argv[i], "-s") == 0) {
+ await_change();
+ }
+ }
}