Now it is time for #srfi37 . I wrote implementation for my #guile library to provide getopt_long compatible parsing[0]. Pretty much drop-in replacement, and you get a familiar behavior you know from the GNU C library.
Additionally, I ported my #guix tree to it. I can now write
guix shell --expose ~/dir
and it works. I am using it for few months and seems to work just fine. Feel free to grab the patch[1] and install it to your trees.
0: https://git.wolfsden.cz/guile-wolfsden/tree/wolfsden/srfi/srfi-37.scm
1: https://git.wolfsden.cz/guix/commit/?id=44abab7e5e179f755f5edc9ac862e4ff60fadb2e