Skip to content

Commit

Permalink
Current work.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdblue committed May 19, 2017
1 parent ce807af commit a7515ba
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions parquet-cli/src/main/java/org/apache/parquet/cli/Help.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ public int run() {

boolean hasRequired = false;
console.info("\nUsage: {} [general options] {} {} [command options]",
new Object[] {
programName, cmd,
commander.getMainParameterDescription()});
programName, cmd,
commander.getMainParameterDescription());
console.info("\n Description:");
console.info("\n {}", jc.getCommandDescription(cmd));
if (!commander.getParameters().isEmpty()) {
Expand All @@ -82,8 +81,7 @@ public int run() {
// comment
console.info("\n {}", example);
} else {
console.info(" {} {} {}",
new Object[] {programName, cmd, example});
console.info(" {} {} {}", programName, cmd, example);
}
}
}
Expand Down Expand Up @@ -121,11 +119,11 @@ public void printGenericHelp() {
private boolean printOption(Logger console, ParameterDescription param) {
boolean required = param.getParameter().required();
if (!param.getParameter().hidden()) {
console.info(" {} {}\n\t{}{}", new Object[]{
console.info(" {} {}\n\t{}{}",
required ? "*" : " ",
param.getNames().trim(),
param.getDescription(),
formatDefault(param)});
formatDefault(param));
}
return required;
}
Expand Down

0 comments on commit a7515ba

Please sign in to comment.