jmark99 commented on issue #4755:
URL: https://github.com/apache/accumulo/issues/4755#issuecomment-2250618527

   @ddanielr looking at the accumulo admin command usage states:
   
   ```
   Usage: accumulo admin [options] [command] [command options]                  
                                                                     
     Options:                                                                   
                                                                     
       -auths, --auths                                                      
         the authorizations to use when reading or writing                      
                                                                     
         Default: <empty string>                                                
                                                                     
       -c, --config-file                                                        
                                                                     
         Read the given client config file. If omitted, the classpath will be   
                                                                     
         searched for file named accumulo-client.properties                 
       -f, --force                                                          
         force the given server to stop by removing its lock                    
                                                                     
         Default: false                                                         
                                                                     
       -h, -?, --help, -help    
        ......
   ```
        
   The usage indicates that the help flags should appear between the `admin` 
and `command` values. None of the sub- commands themselves have any help flags 
listed. It appears the initial code only provided a help command for the 
overall admin command.
   
   I went through each sub-command and If you  execute each sub-command  using 
that format no errors are thrown, but rather the entire `accumulo admin`  help 
message is displayed.
   
   The one exception is the  `randomizeVolumes` command. This command will 
throw an exception if the `-t <table>` info is not provided.
   
   I agree that it would nice if help info would be provided if a help flag was 
used anywhere on the command line, but I'm not sure if this is a bug or just a 
design choice that was made. I'm not sure how to best let the user know that 
the help flags should be earlier on the command line. Perhaps it should be 
considered an enhancement/improvement issue instead. What are your thoughts?
   


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

Reply via email to