Skip to content

Commit

Permalink
ORC-1848: PrintData tool add parameter description
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
```bash
java -jar orc-tools-2.2.0-SNAPSHOT-uber.jar data -h
usage: java -jar orc-tools-*.jar data <orc file>*
 -h,--help            Provide help
 -n,--lines <LINES>   Sets lines of data to be printed
```

### Why are the changes needed?
```bash
java -jar orc-tools-2.1.0-uber.jar data -h
usage: java -jar orc-tools-*.jar data <orc file>*
 -h,--help            Provide help
 -n,--lines <LINES>
```

### How was this patch tested?
local test

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #2126 from cxzl25/ORC-1848.

Authored-by: sychen <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 2aec4fb)
Signed-off-by: Dongjoon Hyun <[email protected]>
  • Loading branch information
cxzl25 authored and dongjoon-hyun committed Feb 11, 2025
1 parent d83621e commit fb366e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/tools/src/java/org/apache/orc/tools/PrintData.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ private static Options getOptions() {
.build();
Option linesOpt = Option.builder("n").longOpt("lines")
.argName("LINES")
.desc("Sets lines of data to be printed")
.hasArg()
.build();

Expand Down

0 comments on commit fb366e5

Please sign in to comment.