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

cmd=xargs

optcomplete  $cmd 0 null
optcomplete -m arg_required  $cmd e eof
optcomplete  $cmd help
optcomplete -m arg_required  $cmd replace i
optcomplete -D 'line count'  $cmd max-lines l
optcomplete -D 'argument count'  $cmd n max-args
optcomplete  $cmd p interactive
optcomplete  $cmd no-run-if-empty r
optcomplete -D 'character count'  $cmd max-chars s
optcomplete  $cmd verbose t
optcomplete  $cmd version
optcomplete  $cmd x exit
optcomplete -D 'process count'  $cmd P max-procs
optcomplete -m cut -C 'compgen -c -- "${XPC_PATTERN}" #'  $cmd NONOPT

optcomplete -m long,getoptparse  $cmd

complete -F xpcompfunc  $cmd

unset cmd ${!xpc_*}
