> On Feb. 3, 2014, 7:57 p.m., Neha Narkhede wrote: > > core/src/main/scala/kafka/admin/TopicCommand.scala, line 275 > > <https://reviews.apache.org/r/17479/diff/3-4/?file=456676#file456676line275> > > > > shouldn't the first check be that exactly one of alter, create, delete, > > describe or list is used? That will simplify the rest of the checks
That check was already done at the beginning in main(). - Jun ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17479/#review33484 ----------------------------------------------------------- On Feb. 2, 2014, 7:24 p.m., Jun Rao wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/17479/ > ----------------------------------------------------------- > > (Updated Feb. 2, 2014, 7:24 p.m.) > > > Review request for kafka. > > > Bugs: KAFKA-1232 > https://issues.apache.org/jira/browse/KAFKA-1232 > > > Repository: kafka > > > Description > ------- > > 1. Consolidated all arg checks in TopicCommandOptions.checkArgs() and added > additional checks for invalid args. 2. Fixed deleteConfig to only expect > deleted config names to be specified. > > > Address review comments. > > > Only support the topics-with-overrides option in describe topic to keep list > topic simple. > > > 1. Made the topic arg optional in both list topic and describe topic. If not > specified, all topics will be used. 2. Made The topics-with-overrides option > available in describe topic and remove the extra print out in list topic. 3. > Added a check on mutually exclusive options. > > > Diffs > ----- > > core/src/main/scala/kafka/admin/TopicCommand.scala > 842c11047cca0531fbc572fdb25523244ba2b626 > core/src/main/scala/kafka/utils/CommandLineUtils.scala > 5f563ca93ed5c6e4231a42331619ca41375844ca > > Diff: https://reviews.apache.org/r/17479/diff/ > > > Testing > ------- > > > Thanks, > > Jun Rao > >