pacman/test/scripts
Ethan Sommer 7be7552329 libmakepkg: add optional argument support to parseopts
Adds a "?" suffix that can be used to indicate that an option's argument is
optional.

This allows options to have a default behaviour when the user doesn't
specify one, e.g.: --color=[when] being able to behave like --color=auto
when only --color is passed

Options with optional arguments given on the command line will be returned
in the form "--opt=optarg" and "-o=optarg". Despite that not being the
syntax for passing an argument with a shortopt (trying to pass -o=foo
would make -o's argument "=foo"), this is done to allow the caller to split
the option and its optarg easily

Signed-off-by: Ethan Sommer <e5ten.arch@gmail.com>
Reviewed-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2019-11-04 10:55:23 +10:00
..
makepkg-template-tests makepkg-template: support multiple --template-dirs 2015-05-12 14:00:54 +10:00
human_to_size_test.sh Remove all modelines from the project 2018-05-14 09:59:15 +10:00
Makefile.am autotools: distribute meson files 2019-10-04 11:25:48 +10:00
makepkg-template_test.sh Add testrunner for makepkg-template 2015-01-11 18:58:24 +10:00
meson.build meson: remove tap-driver.py, use meson's TAP protocol 2019-08-12 10:03:17 +10:00
pacman-db-upgrade-v9.py tests/pacman-db-upgrade-v9: set additional paths 2014-11-04 20:11:18 +10:00
parseopts_test.sh libmakepkg: add optional argument support to parseopts 2019-11-04 10:55:23 +10:00