busctl: rename --num-matches= → --limit-messages=

We should avoid unnecessary abbreviations for such messages, and this
puts a maximum limit on things, hence it should indicate this in the
name.

Moreover, matches is a bit confusing, since most people will probably
call "busctl monitor" without any match specification, i.e. zero
matches, but that's not what was meant here at all.

Also, add a brief switch for this (-N) since I figure in particular
"-N1" might be a frequent operation people might want to use.

Follow-up for: 989e843e75
See: #34048
This commit is contained in:
Lennart Poettering
2024-10-29 16:50:06 +01:00
parent 312dad32c1
commit 8187515aab
5 changed files with 23 additions and 18 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ _busctl() {
--allow-interactive-authorization=no --augment-creds=no
--watch-bind=yes -j -l --full --xml-interface'
[ARG]='--address -H --host -M --machine --match --timeout --size --json
--destination --num-matches'
--destination -N --limit-messages'
)
if __contains_word "--user" ${COMP_WORDS[*]}; then