[pacman-dev] [PATCH 0/3] parse_options: implement features useful for pacman-key

Allan McRae allan at archlinux.org
Tue Jul 5 07:51:28 EDT 2011


The implementation of optional arguments and accepting multiple arguments are
features that are required for using the option parser in pacman-key.

e.g. pacman-key --add [<file(s)>]

This can take no arguments or an arbitary number of arguments.

Allan McRae (3):
  parse_options: add missing newlines
  parse_options: implement optional arguments
  parse_options: accept multiple arguments

 scripts/library/parse_options.sh |   44 ++++++++++++++++++++++++++++++-------
 1 files changed, 35 insertions(+), 9 deletions(-)

-- 
1.7.6



More information about the pacman-dev mailing list