[ 
https://issues.apache.org/jira/browse/ACCUMULO-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14030204#comment-14030204
 ] 

ASF subversion and git services commented on ACCUMULO-2747:
-----------------------------------------------------------

Commit b664f51d863fc4a90bff6b02519f96ccbe19d90e in accumulo's branch 
refs/heads/1.6.1-SNAPSHOT from [~jschwartz73]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=b664f51 ]

ACCUMULO-2747 Added dash to 'show few' option

Signed-off-by: Josh Elser <[email protected]>


> Scan "show few" long option contains a space
> --------------------------------------------
>
>                 Key: ACCUMULO-2747
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2747
>             Project: Accumulo
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 1.4.5
>         Environment: 1.4.5 on BigTop 0.7.0
>            Reporter: Sean Busbey
>            Assignee: Jeffrey S Schwartz
>            Priority: Minor
>              Labels: newbie, summit2014
>             Fix For: 1.6.1
>
>         Attachments: ACCUMULO-2747.patch.txt
>
>
> the "show few" option on the scan command has a space instead of a dash. It's 
> confusing and inconsistent.
> {noformat}
> root@bigtop> help scan                       
> usage: scan [-?] [-b <start-row>] [-c 
> <<columnfamily>[:<columnqualifier>]{,<columnfamily>[:<columnqualifier>]}>] 
> [-e <end-row>] [-f <int>] [-fm <className>] [-np] [-r <row>]
>        [-s <comma-separated-authorizations>] [-st] [-t <table>]
> description: scans the table, and displays the resulting records
>   -?,--help                                                                   
>                display this help
>   -b,--begin-row <start-row>                                                  
>                begin row (inclusive)
>   -c,--columns 
> <<columnfamily>[:<columnqualifier>]{,<columnfamily>[:<columnqualifier>]}>     
> comma-separated columns
>   -e,--end-row <end-row>                                                      
>                end row (inclusive)
>   -f,--show few <int>                                                         
>                show only a specified number of characters
>   -fm,--formatter <className>                                                 
>                fully qualified name of the formatter class to use
>   -np,--no-pagination                                                         
>                disable pagination of output
>   -r,--row <row>                                                              
>                row to scan
>   -s,--scan-authorizations <comma-separated-authorizations>                   
>                scan authorizations (all user auths are used if this argument 
> is not specified)
>   -st,--show-timestamps                                                       
>                display timestamps
>   -t,--tableName <table>                                                      
>                table to be scanned
> root@bigtop> scan -t usertable --show few 40 
> 2014-04-28 14:26:55,704 [shell.Shell] ERROR: 
> org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: 
> --show
> usage: scan [-?] [-b <start-row>] [-c 
> <<columnfamily>[:<columnqualifier>]{,<columnfamily>[:<columnqualifier>]}>] 
> [-e <end-row>] [-f <int>] [-fm <className>] [-np] [-r <row>] [-s 
> <comma-separated-authorizations>] [-st] [-t <table>]
> description: scans the table, and displays the resulting records
>   -?,--help                                                                   
>                display this help
>   -b,--begin-row <start-row>                                                  
>                begin row (inclusive)
>   -c,--columns 
> <<columnfamily>[:<columnqualifier>]{,<columnfamily>[:<columnqualifier>]}>     
> comma-separated columns
>   -e,--end-row <end-row>                                                      
>                end row (inclusive)
>   -f,--show few <int>                                                         
>                show only a specified number of characters
>   -fm,--formatter <className>                                                 
>                fully qualified name of the formatter class to use
>   -np,--no-pagination                                                         
>                disable pagination of output
>   -r,--row <row>                                                              
>                row to scan
>   -s,--scan-authorizations <comma-separated-authorizations>                   
>                scan authorizations (all user auths are used if this argument 
> is not specified)
>   -st,--show-timestamps                                                       
>                display timestamps
>   -t,--tableName <table>                                                      
>                table to be scanned
> root@bigtop> scan -t usertable --show-few 40
> 2014-04-28 14:27:00,175 [shell.Shell] ERROR: 
> org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: 
> --show-few
> usage: scan [-?] [-b <start-row>] [-c 
> <<columnfamily>[:<columnqualifier>]{,<columnfamily>[:<columnqualifier>]}>] 
> [-e <end-row>] [-f <int>] [-fm <className>] [-np] [-r <row>] [-s 
> <comma-separated-authorizations>] [-st] [-t <table>]
> description: scans the table, and displays the resulting records
>   -?,--help                                                                   
>                display this help
>   -b,--begin-row <start-row>                                                  
>                begin row (inclusive)
>   -c,--columns 
> <<columnfamily>[:<columnqualifier>]{,<columnfamily>[:<columnqualifier>]}>     
> comma-separated columns
>   -e,--end-row <end-row>                                                      
>                end row (inclusive)
>   -f,--show few <int>                                                         
>                show only a specified number of characters
>   -fm,--formatter <className>                                                 
>                fully qualified name of the formatter class to use
>   -np,--no-pagination                                                         
>                disable pagination of output
>   -r,--row <row>                                                              
>                row to scan
>   -s,--scan-authorizations <comma-separated-authorizations>                   
>                scan authorizations (all user auths are used if this argument 
> is not specified)
>   -st,--show-timestamps                                                       
>                display timestamps
>   -t,--tableName <table>                                                      
>                table to be scanned
> root@bigtop> scan -t usertable --show\ few 40
> <snip contents>
> {noformat}
> Expected: dash in name, or other means to not include escaping
> Workaround: use short form (-f) or escape the space as shown above.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to