src: Remove -p option from command line arguments

refs: #1904

Change-Id: I8e011281f7d0d9d41aa9e6797768f1756f48ff46
diff --git a/src/main.cpp b/src/main.cpp
index 2497f74..c46aea2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -35,7 +35,7 @@
   std::string programName(argv[0]);
   nlsr.setConfFileName("nlsr.conf");
   int32_t opt;
-  while ((opt = getopt(argc, argv, "df:p:h")) != -1) {
+  while ((opt = getopt(argc, argv, "df:h")) != -1) {
     switch (opt)
     {
       case 'f':
@@ -44,14 +44,6 @@
       case 'd':
         nlsr.setIsDaemonProcess(true);
         break;
-      case 'p':
-      {
-        std::stringstream sst(optarg);
-        int ap;
-        sst >> ap;
-        nlsr.setApiPort(ap);
-      }
-      break;
       case 'h':
       default:
         nlsr.usage(programName);