final String path = StringUtils.popOptionWithArgument("-path", args); if (path == null) { System.err.println("Please specify a path.\nUsage: " + getLongUsage()); return 1; System.err.println(getName() + ": Too many arguments"); return 1;
@Override public String getShortUsage() { return "[" + getName() + " -path <path>]\n"; }
@Override public String getLongUsage() { TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<path>", "The path of the directory " + "from which the erasure coding policy will be unset."); return getShortUsage() + "\n" + "Unset the erasure coding policy for a directory.\n\n" + listing.toString(); }