From: Eitan Adler <lists@eitanadler.com>
To: zsh-workers@zsh.org
Cc: Eitan Adler <lists@eitanadler.com>
Subject: [PATCH] _powerd: add -M and -m options
Date: Sat, 26 May 2018 07:08:21 +0000 [thread overview]
Message-ID: <20180526070821.8661-1-lists@eitanadler.com> (raw)
These are specific numeric values. While we can be more careful about
allowed values, limiting to numbers is good enough for now.
Signed-off-by: Eitan Adler <lists@eitanadler.com>
---
Completion/BSD/Command/_powerd | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Completion/BSD/Command/_powerd b/Completion/BSD/Command/_powerd
index 18a9fb437..88d7c401b 100644
--- a/Completion/BSD/Command/_powerd
+++ b/Completion/BSD/Command/_powerd
@@ -6,6 +6,8 @@ _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[maximum frequency to throttle down to]:freq: :_guard '[0-9]#' 'numeric value'" \
+ "-M[maximum frequency to throttle up to]:freq: :_guard '[0-9]#' 'numeric value'" \
"-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' \
--
2.17.0
next reply other threads:[~2018-05-26 8:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-26 7:08 Eitan Adler [this message]
2018-05-27 19:16 ` Oliver Kiddle
2018-06-05 23:13 ` Eitan Adler
2018-06-05 22:11 Eitan Adler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180526070821.8661-1-lists@eitanadler.com \
--to=lists@eitanadler.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).