Fix command-line parsing.

Unless in debug mode, don't print the permissions.