@CliCommand(value = PREFIX + "copyMergeToLocal", help = "Takes a source directory and a destination file as input and concatenates files in src into the destination local file")
	public void copyMergeToLocal(
			@CliOption(key = { FROM }, mandatory = true, help = SOURCE_FILE_NAMES) final String source,
			@CliOption(key = { "to" }, mandatory = true, help = DESTINATION_PATH_NAME) final String dest,
			@CliOption(key = { "endline" }, mandatory = false, specifiedDefaultValue = TRUE, unspecifiedDefaultValue = FALSE, help = "whether add a newline character at the end of each file") final boolean endline) {
		List<String> argv = new ArrayList<String>();
		argv.add("-getmerge");
		argv.add(source);
		argv.add(dest);
		if (endline) {
			argv.add(TRUE);
		}
		run(argv.toArray(new String[0]));
	}
HDFS shell commands

@author Jarred Li
@author Glenn Renfro
spring-xd-shell/src/main/java/org/springframework/xd/shell/hadoop/FsShellCommands.java