package Breccia.Web.imager;
/** @see
* Options for the `web-image-clean` command
*/
public final class CleaningOptions extends Options {
public CleaningOptions( String commandName ) { super( commandName ); } // [SLA]
/** Whether to forcefully clean the Web image.
*
* @see
* Command option `-force`
*/
public boolean toForce() { return toForce; }
//// P r i v a t e ////////////////////////////////////////////////////////////////////////////////////
private boolean toForce;
// ━━━ O p t i o n s ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
protected @Override boolean initialize( final String arg ) {
boolean isGo = true;
String s;
if( arg.equals( "-force" )) toForce = true;
else isGo = super.initialize( arg );
return isGo; }}
// NOTE
// ────
// SLA Source-launch access. This member would have `protected` access were it not needed by
// class `WebImageCleanCommand`. Source launched and loaded by a separate class loader,
// that class is treated at runtime as residing in a separate package.
// Copyright © 2022 Michael Allan. Licence MIT.