yaooqinn commented on PR #2356:
URL: 
https://github.com/apache/incubator-kyuubi/pull/2356#issuecomment-1098972183

   > > how about simply
   > > ```scala
   > > def fromCommandLineArgs(args: Seq[String], conf: KyuubiConf): Unit = {
   > >     for (i <- args.indices by 2) {
   > >       require(args(i) == "--conf", s"Unrecognized main arguments prefix 
${args(i)}")
   > >       require(i + 1 <= args.size , "Command arguments ended 
unexpectedly")
   > > 
   > >       args(i + 1).split("=", 2) match {
   > >         case seq if seq.size == 2 => conf.set(seq.head, seq.last)
   > >         case _ => throw new IllegalArgumentException(s" $args(i + 1)")
   > >       }
   > >     }
   > >   }
   > > ```
   > 
   > but, as if it's inconvenient if need some other arguments.
   
   any cases


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to