Add -type option to command line interface
Merge branch lpgauth: Add -type option