zsh-workers
 help / color / mirror / code / Atom feed
58b4d991b961da66080512802d3a87b81778c35d blob 696 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
#compdef uptime guptime

local variant

_pick_variant -r variant procps=procps gnu='Free Soft' unix --version

case $variant in
  procps)
    _arguments -s -S : \
      '(: -)'{-h,--help}'[display help information]' \
      '(: -)'{-V,--version}'[display version information]' \
      + '(excl)' \
      {-p,--pretty}'[display uptime in pretty format]' \
      {-s,--since}'[display date/time of system boot]'
    return
    ;;
  gnu)
    _arguments -S : \
      '(: -)--help[display help information]' \
      '(: -)--version[display version information]' \
      '1:utmp/wtmp file:_files'
    return
    ;;
  # *BSD, Darwin, Solaris, BusyBox
  *) _message 'no more arguments'; return 1 ;;
esac
debug log:

solving 58b4d991b ...
found 58b4d991b in https://git.vuxu.org/mirror/zsh/

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).