Fix #1173

Use -P as the short version of --port and -H as the short version of --host