Support directory for --output option.

Also implement, --pedantic, --filename and --section.