public static Triple<TableName, Scan, Path> getArgumentsFromCommandLine(Configuration conf,
    String[] args) throws IOException {
    if (!isValidArguements(args)) {
      return null;
    }
    return new Triple<>(TableName.valueOf(args[0]), getScanFromCommandLine(conf, args),
      new Path(args[1]));
  }
Common usage for other export tools.
@param errorMsg Error message. Can be null.
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/ExportUtils.java