Fix a bug in the command line parsing.

Actually tested that --show also works in X11 as well.