From b96dac3287bcc9fb8066f29d5efe560d5afcfacc Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 12 Nov 2018 10:32:27 +0100 Subject: 43813: for powerd add units, default values and allow option arguments in the same word as the option --- ChangeLog | 3 +++ Completion/BSD/Command/_powerd | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 885c69ac2..5ac9c33f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2018-11-12 Oliver Kiddle + * 43813: Completion/BSD/Command/_powerd: add units, default + values and allow option arguments in the same word as the option + * 43812: Completion/Unix/Command/_gcc: allow repeats of the -Wsuggest-attribute option diff --git a/Completion/BSD/Command/_powerd b/Completion/BSD/Command/_powerd index 05c03ab15..c64abb5bc 100644 --- a/Completion/BSD/Command/_powerd +++ b/Completion/BSD/Command/_powerd @@ -3,13 +3,13 @@ local powerd_mode powerd_mode=(minimum maximum adaptative) _arguments -s \ - "-a[mode to use while on AC power]:mode:($powerd_mode)" \ - "-b[mode to use while on battery power]:mode:($powerd_mode)" \ - '-i[CPU idle percent level when begin to degrade performance]:percent:' \ - '-m[minimum frequency to throttle down to]:frequency (MHz)' \ - '-M[maximum frequency to throttle up to]:frequency (MHz)' \ - "-n[mode to use normally when the AC line state is unknown]:mode:($powerd_mode)" \ - '-p[polling interval (in milliseconds) for AC line state and system idle levels]:interval:' \ - '-P[alternative pidfile]:pidfile:_files' \ - '-r[CPU idle percent level where to increase performance]:percent:' \ - '-v[verbose mode]' + "-a+[mode to use while on AC power]:mode:($powerd_mode)" \ + "-b+[mode to use while on battery power]:mode:($powerd_mode)" \ + '-i+[CPU idle percent level when begin to degrade performance]:percent [75]' \ + '-m+[minimum frequency to throttle down to]:frequency (MHz)' \ + '-M+[maximum frequency to throttle up to]:frequency (MHz)' \ + "-n+[mode to use normally when the AC line state is unknown]:mode:($powerd_mode)" \ + '-p+[polling interval for AC line state and system idle levels]:interval (ms) [250]:' \ + '-P+[alternative pidfile]:pidfile:_files' \ + '-r+[CPU idle percent level where to increase performance]:percent' \ + '-v[verbose mode]' -- cgit 1.4.1