Skip to content

Commit

Permalink
0004016: Lack of -s option in symadmin help send-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jun 19, 2019
1 parent 2baf3e8 commit c192eef
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,11 @@ private void printHelpCommand(CommandLine line) {
addOption(options, "n", OPTION_NODE, true);
addOption(options, "g", OPTION_NODE_GROUP, true);
}
if (cmd.equals(CMD_RELOAD_TABLE)) {
if (cmd.equals(CMD_RELOAD_TABLE) || cmd.equals(CMD_SYNC_TRIGGERS) || cmd.equals(CMD_SEND_SQL) || cmd.equals(CMD_SEND_SCHEMA)) {
addOption(options, "c", OPTION_CATALOG, true);
addOption(options, "s", OPTION_SCHEMA, true);
}
if (cmd.equals(CMD_RELOAD_TABLE)) {
addOption(options, "w", OPTION_WHERE, true);
}
if (cmd.equals(CMD_SYNC_TRIGGERS)) {
Expand Down Expand Up @@ -264,9 +266,7 @@ private void printHelpCommand(CommandLine line) {
}
writer.flush();
}
}


}

@Override
protected void buildOptions(Options options) {
Expand Down

0 comments on commit c192eef

Please sign in to comment.