System.err.println("Usage is " + getShortUsage()); return 1;
System.err.println("Usage is " + getShortUsage()); return 1;
System.err.println("Usage is " + getShortUsage()); return 1;
@Override public String getLongUsage() { TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<id>", "The ID of the directive to modify (required)"); listing.addRow("<path>", "A path to cache. The path can be " + "a directory or a file. (optional)"); listing.addRow("-force", "Skips checking of cache pool resource limits."); listing.addRow("<replication>", "The cache replication factor to use. " + "(optional)"); listing.addRow("<pool-name>", "The pool to which the directive will be " + "added. You must have write permission on the cache pool " + "in order to move a directive into it. (optional)"); listing.addRow("<time-to-live>", "How long the directive is " + "valid. Can be specified in minutes, hours, and days, e.g. " + "30m, 4h, 2d. Valid units are [smhd]." + " \"never\" indicates a directive that never expires."); return getShortUsage() + "\n" + "Modify a cache directive.\n\n" + listing.toString(); }
@Override public String getLongUsage() { TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<id>", "The ID of the directive to modify (required)"); listing.addRow("<path>", "A path to cache. The path can be " + "a directory or a file. (optional)"); listing.addRow("-force", "Skips checking of cache pool resource limits."); listing.addRow("<replication>", "The cache replication factor to use. " + "(optional)"); listing.addRow("<pool-name>", "The pool to which the directive will be " + "added. You must have write permission on the cache pool " + "in order to move a directive into it. (optional)"); listing.addRow("<time-to-live>", "How long the directive is " + "valid. Can be specified in minutes, hours, and days, e.g. " + "30m, 4h, 2d. Valid units are [smhd]." + " \"never\" indicates a directive that never expires."); return getShortUsage() + "\n" + "Modify a cache directive.\n\n" + listing.toString(); }
@Override public String getLongUsage() { TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<id>", "The ID of the directive to modify (required)"); listing.addRow("<path>", "A path to cache. The path can be " + "a directory or a file. (optional)"); listing.addRow("-force", "Skips checking of cache pool resource limits."); listing.addRow("<replication>", "The cache replication factor to use. " + "(optional)"); listing.addRow("<pool-name>", "The pool to which the directive will be " + "added. You must have write permission on the cache pool " + "in order to move a directive into it. (optional)"); listing.addRow("<time-to-live>", "How long the directive is " + "valid. Can be specified in minutes, hours, and days, e.g. " + "30m, 4h, 2d. Valid units are [smhd]." + " \"never\" indicates a directive that never expires."); return getShortUsage() + "\n" + "Modify a cache directive.\n\n" + listing.toString(); }