summaryrefslogtreecommitdiffstats
path: root/scripts/po/zh_CN.po
diff options
context:
space:
mode:
authorEthan Sommer <e5ten.arch@gmail.com>2019-11-04 01:45:04 +0100
committerAllan McRae <allan@archlinux.org>2019-11-04 01:55:23 +0100
commit7be75523297875dacfad9083b0663a04bf823a3e (patch)
tree612ce1bb457d4a51e600d0f8635c4eee92fbc8f2 /scripts/po/zh_CN.po
parentf6564377a2b0a0dd6294fb366a3f91a31142e124 (diff)
downloadpacman-7be75523297875dacfad9083b0663a04bf823a3e.tar.gz
pacman-7be75523297875dacfad9083b0663a04bf823a3e.tar.xz
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>
Diffstat (limited to 'scripts/po/zh_CN.po')
0 files changed, 0 insertions, 0 deletions