in odps-console-dship/src/main/java/com/aliyun/odps/ship/common/OptionsBuilder.java [714:772]
public static Options getGlobalOptions() {
Options opts = new Options();
opts.addOption(OptionBuilder.withLongOpt(Constants.QUOTA_NAME).withDescription(
"quota name").hasArg().withArgName("ARG").create("qn"));
opts.addOption(OptionBuilder.withLongOpt(Constants.TUNNEL_ENDPOINT).withDescription(
"tunnel endpoint").hasArg().withArgName("ARG").create("te"));
opts.addOption(OptionBuilder.withLongOpt(Constants.CHARSET)
.withDescription(
"specify file charset, default " + Constants.IGNORE_CHARSET + ". set "
+ Constants.IGNORE_CHARSET + " to download raw data")
.hasArg().withArgName("ARG").create("c"));
opts.addOption(OptionBuilder.withLongOpt(Constants.FIELD_DELIMITER)
.withDescription(
"specify field delimiter, support unicode, eg \\u0001. default "
+ Util.toHumanReadableString(Constants.DEFAULT_FIELD_DELIMITER))
.hasArg().withArgName("ARG").create("fd"));
opts.addOption(OptionBuilder.withLongOpt(Constants.RECORD_DELIMITER)
.withDescription(
"specify record delimiter, support unicode, eg \\u0001. default "
+ Util.toHumanReadableString(Constants.DEFAULT_RECORD_DELIMITER))
.hasArg().withArgName("ARG").create("rd"));
opts.addOption(OptionBuilder.withLongOpt(Constants.DATE_FORMAT_PATTERN)
.withDescription("specify date format pattern, default "
+ Constants.DEFAULT_DATETIME_FORMAT_PATTERN)
.hasArg().withArgName("ARG").create("dfp"));
opts.addOption(OptionBuilder.withLongOpt(Constants.NULL_INDICATOR)
.withDescription(
"specify null indicator string, default "
+ Util.toHumanReadableString(Constants.DEFAULT_NULL_INDICATOR))
.hasArg().withArgName("ARG").create("ni"));
opts.addOption(OptionBuilder.withLongOpt(Constants.TIME_ZONE)
.withDescription("time zone, default local timezone: "
+ Calendar.getInstance().getTimeZone().getID())
.hasArg().withArgName("ARG").create("tz"));
opts.addOption(OptionBuilder.withLongOpt(Constants.COMPRESS)
.withDescription("compress, default true")
.hasArg().withArgName("ARG").create("cp"));
opts.addOption(OptionBuilder.withLongOpt(Constants.HEADER)
.withDescription("if local file should have table header, default "
+ Constants.DEFAULT_HEADER).hasArg().withArgName("ARG")
.create("h"));
opts.addOption(OptionBuilder.withLongOpt(Constants.SESSION_DIR)
.withDescription("set session dir, default " + Constants.DEFAULT_SESSION_DIR)
.hasArg().withArgName("ARG").create("sd"));
opts.addOption(OptionBuilder.withLongOpt(Constants.CSV_FORMAT)
.withDescription(
"use csv format (true|false), default false. When uploading in csv format, file splitting not supported.")
.hasArg().withArgName("ARG").create("cf"));
opts.addOption(OptionBuilder.withLongOpt(Constants.TIME)
.withDescription(
"keep track of upload/download elapsed time or not. Default "
+ Constants.DEFAULT_TIME)
.hasArg().withArgName("ARG").create("time"));
return opts;
}