]> granicus.if.org Git - neomutt/commit
Handle -- correctly with or without -a, closes #3097
authorAron Griffis <agriffis@n01se.net>
Tue, 19 Aug 2008 20:44:26 +0000 (16:44 -0400)
committerAron Griffis <agriffis@n01se.net>
Tue, 19 Aug 2008 20:44:26 +0000 (16:44 -0400)
commit134b08f4ee6533a51c5b2c5a83e40cf1f3d2231e
tree5c7b762f09b9b71b9d21d2bb01d220818b4ad369
parentb4d30104fa60c914ec6e9faa55aa6f33af3e2a31
Handle -- correctly with or without -a, closes #3097

Prefix optstring with "+" to force POSIX behavior on GNU getopt, and thereby
prevent reordering argv.  This allows us to correctly handle mixed addresses,
attachments, options and the double-dash to signal end-of-options.

Signed-off-by: Aron Griffis <agriffis@n01se.net>
main.c