#  Copyright (C) 2003 Ingo K"ohne
#  
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#  
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#  
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

. ../include/common

cmd=less

optcomplete  $cmd ? help
optcomplete  $cmd a search-skip-screen
optcomplete -W "$xpc_digit_W"  $cmd b buffers
optcomplete  $cmd B auto-buffers
optcomplete  $cmd c clear-screen
optcomplete  $cmd C CLEAR-SCREEN
optcomplete  $cmd dumb d
optcomplete -W 'n s d u k'  $cmd D color
optcomplete  $cmd quit-at-eof e
optcomplete  $cmd QUIT-AT-EOF E
optcomplete  $cmd f force
optcomplete  $cmd quit-if-one-screen F
optcomplete  $cmd hilite-search g
optcomplete  $cmd HILITE-SEARCH G
optcomplete -W "$xpc_digit_W"  $cmd h max-back-scroll
optcomplete  $cmd i ignore-case
optcomplete  $cmd I IGNORE-CASE
optcomplete -W "$xpc_digit_W"  $cmd jump-target j
optcomplete  $cmd J status-column
optcomplete -f $cmd k lesskey-file
optcomplete  $cmd m long-prompt
optcomplete  $cmd M LONG-PROMPT
optcomplete  $cmd line-numbers n
optcomplete  $cmd LINE-NUMBERS N
optcomplete -f  $cmd log-file o
optcomplete -f  $cmd LOG-FILE O
optcomplete -m arg_required  $cmd p pattern
optcomplete -m arg_required  $cmd P prompt
optcomplete  $cmd q silent
optcomplete  $cmd Q SILENT
optcomplete  $cmd r raw-control-chars
optcomplete  $cmd R RAW-CONTROL-CHARS
optcomplete  $cmd s squeeze-blank-lines
optcomplete  $cmd S chop-long-lines
optcomplete -m arg_required  $cmd tag t
optcomplete -f  $cmd tag-file T
optcomplete  $cmd underline-special u
optcomplete  $cmd UNDERLINE-SPECIAL U
optcomplete  $cmd version V
optcomplete  $cmd hilite-unread w
optcomplete  $cmd HILITE-UNREAD W
optcomplete -W "$xpc_digit_W"  $cmd x tabs
optcomplete  $cmd X no-init
optcomplete -W "$xpc_digit_W"  $cmd y max-forw-scroll
optcomplete -W "$xpc_digit_W"  $cmd z window
optcomplete -m arg_required  $cmd quotes tilde shift
optcomplete -f  $cmd NONOPT
optcomplete -m long  $cmd 

complete -F xpcompfunc $cmd

unset cmd ${!xpc_*}
