docs: public static SerialConfig getSerialConfig(SerialConfig defaultConfig, String ... args){
  
          // search all arguments for the argument option designators
          // we skip the last argument in the array because we expect a value defined after each option designator
          for(int index = 0; index < (args.length-1); index++){
  
              // "--device (device-path)"                   [DEFAULT: /dev/ttyAMA0]
              if(args[index].toLowerCase().equals("--device")){
                  defaultConfig.device(args[index+1]);
                  index++;
                  continue;
              }
  
              // "--baud (baud-rate)"                       [DEFAULT: 38400]
              if(args[index].toLowerCase().equals("--baud")){
                  defaultConfig.baud(Baud.getInstance(Integer.parseInt(args[index + 1])));
                  index++;
                  continue;
              }
  
              // "--data-bits (5|6|7|8)"                    [DEFAULT: 8]
              if(args[index].toLowerCase().equals("--data-bits")){
                  defaultConfig.dataBits(DataBits.getInstance(Integer.parseInt(args[index + 1])));
                  index++;
                  continue;
              }
  
              // "--parity (none|odd|even)"                 [DEFAULT: none]
              if(args[index].toLowerCase().equals("--parity")){
                  defaultConfig.parity(Parity.getInstance(args[index + 1]));
                  index++;
                  continue;
              }
  
              // "--stop-bits (1|2)"                        [DEFAULT: 1]
              if(args[index].toLowerCase().equals("--stop-bits")){
                  defaultConfig.stopBits(StopBits.getInstance(Integer.parseInt(args[index + 1])));
                  index++;
                  continue;
              }
  
              // "--flow-control (none|hardware|software)"  [DEFAULT: none]
              if(args[index].toLowerCase().equals("--flow-control")){
                  defaultConfig.flowControl(FlowControl.getInstance(args[index + 1]));
                  index++;
                  continue;
              }
          }
          return defaultConfig;
      }