You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/08/07 14:53:06 UTC

[GitHub] [hadoop-ozone] maobaolong commented on a change in pull request #1290: HDDS-4064. Show container verbose info with verbose option

maobaolong commented on a change in pull request #1290:
URL: https://github.com/apache/hadoop-ozone/pull/1290#discussion_r467091313



##########
File path: hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/container/InfoSubcommand.java
##########
@@ -52,6 +53,10 @@
   @Parameters(description = "Decimal id of the container.")
   private long containerID;
 
+  @CommandLine.Option(names = {"--verbose"},

Review comment:
       @xiaoyuyao 
   ```java
   boolean verbose = false;
   if (parent.getParent() instanceof GenericCli) {
           if (((GenericCli) parent.getParent()).isVerbose()) {
               verbose = true;
           }
   }
   ```
   
   Do you mean that i should add this code to L66




----------------------------------------------------------------
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org