History log of /openbsd/usr.sbin/pkg_add/OpenBSD/Getopt.pm (Results 1 – 17 of 17)
Revision Date Author Comments
# c112ffb6 16-Jun-2023 espie <espie@openbsd.org>

fix default parm, noticed by aja@ on clean-old-distfiles


# 039cbdaa 13-Jun-2023 espie <espie@openbsd.org>

move to use v5.36;
tested by me over the last few weeks, and tb@
also fixed a "manual install" bug properly reported by tb@

aside that there should be *no functional change*.
If you see any message

move to use v5.36;
tested by me over the last few weeks, and tb@
also fixed a "manual install" bug properly reported by tb@

aside that there should be *no functional change*.
If you see any message like "hey, the number of params is wrong"
it is a fringe case I didn't run into and should be easy to fix.

show more ...


# 88617dfe 21-May-2023 espie <espie@openbsd.org>

"fix" for 5.36: pass the possible option value as an extra param
instead of defined/undefined, so that the code sub is called with
the right number of parameters.


# 3550cba9 19-May-2023 espie <espie@openbsd.org>

remove indirect calls


# 07126a4d 17-May-2023 espie <espie@openbsd.org>

stop using old-style prototypes except where strictly necessary
(for try/catch)

signatures will be much more powerful once I move to 5.36


# fa1d8599 10-Apr-2012 espie <espie@openbsd.org>

prevent dpb trace handler from getting in the way of normal usage error reports.


# 85d1f632 24-Dec-2010 espie <espie@openbsd.org>

handle failures from ports tree with more care.
this does avoid infinite loops in case of wrong plists.
necessary since print-plist-with-depends CAN fail...


# 000ce162 27-Oct-2010 espie <espie@openbsd.org>

initial scaffolding for @rcscript: for now, acts like normal files,
but allow absolute pathnames (treat that as an implicit @cwd).


# b0dfb814 30-Jun-2010 espie <espie@openbsd.org>

allow say and errsay to work without parameters, as it's ways common.
create verbose_system up in state, because it makes sense without verbose.


# a3f853c2 30-Jun-2010 espie <espie@openbsd.org>

whitespace cleanup


# d57bb46a 10-May-2010 espie <espie@openbsd.org>

whitespace fixes


# 0fbefedd 10-Nov-2009 espie <espie@openbsd.org>

bad espie: use strict/warnings consistently, and fix two nits and two
actual errors !


# 091395b1 08-Mar-2008 espie <espie@openbsd.org>

let GetOpt count how many times it sees an option, removes special case
for -v, and allow other fun possibilities.


# cc24e6f2 04-Jun-2007 espie <espie@openbsd.org>

some minor systematic changes.
- mark all regexps I can with /o if they can be compiled once.
- turn $o->method() into $o->method
- remove unneeded prototypes
- reduce split /re/ into split "string"

some minor systematic changes.
- mark all regexps I can with /o if they can be compiled once.
- turn $o->method() into $o->method
- remove unneeded prototypes
- reduce split /re/ into split "string" where possible.

show more ...


# 4acb318e 31-Jul-2006 espie <espie@openbsd.org>

add missing licence info.

use strict/warning where applicable, and fix relevant warnings.


# 74e6a23d 29-Jun-2005 espie <espie@openbsd.org>

make Getopt show full option name.
noticed by deraadt@


# e6f69fe2 15-Sep-2004 espie <espie@openbsd.org>

new getopt module, that allows for option-specific processing, so that
for instance, pkg_create -Dvar=value -Dvar2=value2 will work.