Skip to content

Commit 1445577

Browse files
committed
Less confusing help message
1 parent ceb1b8d commit 1445577

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

admin/checkservices

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,18 @@ reload_systemd() {
253253
usage() {
254254
echo "usage ${0##*/} [options]"
255255
echo "description: check for updated files in a service"
256+
echo "For toggle options: lowercase enables (1), uppercase disables (0)"
256257
echo 'options:'
257258
echo ' -h: this help' >&2
258-
echo " -a/-A: auto confirmation (or not) (default: $AUTOCONFIRM)" >&2
259-
echo " -l/-L: call (or not) systemd daemon-(reload|reexec) (default: $RELOAD)" >&2
260-
echo " -f/-F: display (or not) failed services before quit (default: $FAILED)" >&2
261-
echo " -p/-P: call (or not) pacdiff before act (default: $PACDIFF)" >&2
262-
echo " -r/-R: restart (or not) services with updated files (default: $RESTART)" >&2
263-
echo " -s/-S: display (or not) status of restarted service (default: $STATUS)" >&2
264-
echo " -u/-U: act (or not) on services in users slice (default: $USER_SLICE)" >&2
265-
echo " -m/-M: act (or not) on services in machine slice (default: $MACHINE_SLICE)" >&2
266-
echo " -z/-Z: serialize (or not) action (default: $SERIALIZE)" >&2
259+
echo " -a/-A: auto confirmation (default: -A / $AUTOCONFIRM)" >&2
260+
echo " -l/-L: call systemd daemon-(reload|reexec) (default: -l / $RELOAD)" >&2
261+
echo " -f/-F: display failed services before quit (default: -f / $FAILED)" >&2
262+
echo " -p/-P: call pacdiff before act (default: -p / $PACDIFF)" >&2
263+
echo " -r/-R: restart services with updated files (default: -r / $RESTART)" >&2
264+
echo " -s/-S: display status of restarted service (default: -s / $STATUS)" >&2
265+
echo " -u/-U: act on services in users slice (default: -U / $USER_SLICE)" >&2
266+
echo " -m/-M: act on services in machine slice (default: -M / $MACHINE_SLICE)" >&2
267+
echo " -z/-Z: serialize action (default: -Z / $SERIALIZE)" >&2
267268
echo " -i 'service_name'.service: ignore a specific service (can be used multiple times)" >&2
268269
exit 2
269270
}

0 commit comments

Comments
 (0)