Fixed CLI arguments parser

Functional changes :
  1. Using “port=“, “ip=“, “logpath=“ for proper argument recognition
  2. “—help” option does not start the server and exits immediately

Refactoring
  1. Wrapped one line “if” statements to code blocks {}
  2. Using BSD style for brackets