From d73ef51c89c67ab2125387d20488a32654507e73 Mon Sep 17 00:00:00 2001 From: tiosgz Date: Sun, 1 Oct 2023 15:49:21 +0000 Subject: riverctl: rule-{add,del}: reorder parameters Previous order was (action, conditions, action argument), current is (conditions, action, action argument). The old one was an expansion of (action, conditions), which itself most likely came from the separate -filter-add commands. On the other hand, the new order keeps action and its argument together and is in line with the logical flow (check conditions, apply action). On shell completions: only bash absolutely needed to be updated. fish and zsh slightly misbehave regardless of the order. --- doc/riverctl.1.scd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/riverctl.1.scd b/doc/riverctl.1.scd index e08cd44..b599a90 100644 --- a/doc/riverctl.1.scd +++ b/doc/riverctl.1.scd @@ -259,7 +259,7 @@ For example, _abc_ is matched by _a\*_, _\*a\*_, _\*b\*_, _\*c_, _abc_, and _\*_ but not matched by _\*a_, _b\*_, _\*b_, _c\*_, or _ab_. Note that _\*_ matches everything while _\*\*_ and the empty string are invalid. -*rule-add* _action_ [*-app-id* _glob_|*-title* _glob_] [_argument_] +*rule-add* [*-app-id* _glob_|*-title* _glob_] _action_ [_argument_] Add a rule that applies an _action_ to views with *app-id* and *title* matched by the respective _glob_. Omitting *-app-id* or *-title* is equivalent to passing *-app-id* _\*_ or *-title* _\*_. @@ -301,7 +301,7 @@ matches everything while _\*\*_ and the empty string are invalid. wishes of the client and may start the view floating based on simple heuristics intended to catch popup-like views. -*rule-del* _action_ [*-app-id* _glob_|*-title* _glob_] +*rule-del* [*-app-id* _glob_|*-title* _glob_] _action_ Delete a rule created using *rule-add* with the given arguments. *list-rules* *float*|*ssd*|*tag* -- cgit v1.2.3