Avoid compiler error about glob imports in getopts example

Ran into this in practice, fixing it to improve example correctness.