about summary refs log tree commit diff
path: root/Completion/Solaris
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-07-10 23:35:33 +0200
committerOliver Kiddle <opk@zsh.org>2021-07-10 23:44:58 +0200
commit35f9585cd1342a1d962a47be858c7aea60c8f886 (patch)
treeeb00a0180463c09316b83bdd48714f70a66a4023 /Completion/Solaris
parentefec6bbdb55199430dec0a003e5dc8d293de4cff (diff)
downloadzsh-35f9585cd1342a1d962a47be858c7aea60c8f886.tar.gz
zsh-35f9585cd1342a1d962a47be858c7aea60c8f886.tar.xz
zsh-35f9585cd1342a1d962a47be858c7aea60c8f886.zip
49156: make wider use of the convention of square brackets for defaults
Diffstat (limited to 'Completion/Solaris')
-rw-r--r--Completion/Solaris/Command/_dtrace2
-rw-r--r--Completion/Solaris/Command/_prstat6
2 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Solaris/Command/_dtrace b/Completion/Solaris/Command/_dtrace
index 6a6636af3..06e0dc4f6 100644
--- a/Completion/Solaris/Command/_dtrace
+++ b/Completion/Solaris/Command/_dtrace
@@ -12,7 +12,7 @@ case $OSTYPE in
       '-X+[specify ISO C conformance settings for preprocessor]:ISO C conformance:((a\:"ISO plus K&R extensions (default)" c\:"Strictly conformant ISO C" s\:"K&R C only" t\:"ISO plus K&R extensions"))'
     )
     xopts=(
-      'errexit[exit on error with specified status code (default 1)]::status'
+      'errexit[exit on error with specified status code]::status [1]'
       'noresolve[do not perform user address symbol resolution]'
       'uresolve[specify resolution of user addresses]:how:(no symbol basename absolute)'
     )
diff --git a/Completion/Solaris/Command/_prstat b/Completion/Solaris/Command/_prstat
index 1eb38845c..12be9c5a4 100644
--- a/Completion/Solaris/Command/_prstat
+++ b/Completion/Solaris/Command/_prstat
@@ -9,7 +9,7 @@ _prstat()
 	)
 
 	sort_key=(
-		"cpu"\:"process CPU usage (default)"
+		"cpu"\:"process CPU usage"
 		"pri"\:"process priority"
 		"rss"\:"resident set size"
 		"size"\:"size of process image"
@@ -32,8 +32,8 @@ _prstat()
 		'-p[only processes whose process ID is in the list]:PID list' \
 		'-P[only processes or lwps which have most recently executed on a CPU in the list]:CPU list' \
 		'-R[Put prstat in the real time scheduling class]' \
-		'-s[Sort key (descending)]:key:(($sort_key))' \
-		'-S[Sort key (ascending)]:key:(($sort_key))' \
+		'-s[sort key (descending)]:sort key [cpu]:(($sort_key))' \
+		'-S[sort key (ascending)]:sort key [cpu]:(($sort_key))' \
 		'-t[total usage summary for each user]' \
 		'-T[information about processes and tasks]' \
 		'-u[only processes whose effective user ID is in the list]:UID:_users' \