[pass] [patch] use getopt to regularize options

Brian Mattern rephorm at rephorm.com
Wed Sep 12 07:21:21 CEST 2012


I like being able to specify command line options (like -c) at the end
of the line (which is usually when I think of the fact that I need
them).

The attached patch uses getopt(1) to regularize the option list so that
lazy people like me can specify the options in any order.

I *think* this is portable, but don't have access to any systems other
than linux to test on.

Brian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pass-getopt.patch
Type: text/x-diff
Size: 2270 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20120911/44995bd3/attachment.patch>


More information about the Password-Store mailing list