support for --port and --json command line options.