You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2022/04/19 19:19:38 UTC

[GitHub] [bookkeeper] dlg99 opened a new issue, #3223: Docs: CLI docs are badly out of date

dlg99 opened a new issue, #3223:
URL: https://github.com/apache/bookkeeper/issues/3223

   **BUG REPORT**
   
   Multiple utilities have new options added, these do not show up in the documentation on the web site.
   
   Docs:
   https://bookkeeper.apache.org/docs/reference/cli#bookkeeper-shell-listunderreplicated
   ```
   -missingreplica N | Bookie Id of missing replica
   -excludingmissingreplica N | Bookie Id of missing replica to ignore
   -printmissingreplica | Whether to print missingreplicas list?
   ```
   
   Code:
   
   ```
           public ListUnderreplicatedCmd() {
               super(CMD_LISTUNDERREPLICATED);
               opts.addOption("missingreplica", true, "Bookie Id of missing replica");
               opts.addOption("excludingmissingreplica", true, "Bookie Id of missing replica to ignore");
               opts.addOption("printmissingreplica", false, "Whether to print missingreplicas list?");
               opts.addOption("printreplicationworkerid", false, "Whether to print replicationworkerid?");
           }
   ```
   
   and 
   
   ```
       public static class LURFlags extends CliFlags{
   
           @Parameter(names = { "-pmr", "--printmissingreplica" }, description = "Whether to print missingreplicas list?")
           private boolean printMissingReplica;
   
           @Parameter(names = { "-prw",
               "--printreplicationworkerid" }, description = "Whether wo print replicationworkerid?")
           private boolean printReplicationWorkerId;
   
           @Parameter(names = { "-mr", "--missingreplica" }, description = "Bookie Id of missing replica")
           private String missingReplica = DEFAULT;
   
           @Parameter(names = { "-emr", "--excludingmissingreplica" }, description = "Bookie Id of missing replica to "
                                                                                     + "ignore")
           private String excludingMissingReplica = DEFAULT;
   
           @Parameter(names =  {"-l", "--ledgeridformatter"}, description = "Set ledger id formatter")
           private String ledgerIdFormatter = DEFAULT;
       }
   ```
   
   Similarly with other CLI commands


-- 
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: issues-unsubscribe@bookkeeper.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org