- All Superinterfaces:
io.github.mmm.property.AttributeReadOnly,CliCommand,io.github.mmm.marshall.MarshallableObject,io.github.mmm.marshall.Marshaller<Object>,io.github.mmm.marshall.Marshalling<Object>,io.github.mmm.marshall.MarshallingObject,io.github.mmm.bean.ReadableBean,io.github.mmm.value.ReadablePath,io.github.mmm.marshall.id.StructuredIdMappingObject,io.github.mmm.marshall.UnmarshallableObject,io.github.mmm.marshall.Unmarshaller<Object>,io.github.mmm.validation.Validatable,io.github.mmm.bean.WritableBean,io.github.mmm.value.WritablePath
CliCommand to print the version of the program.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.mmm.value.ReadablePath
io.github.mmm.value.ReadablePath.PathBuilder -
Field Summary
Fields inherited from interface io.github.mmm.cli.command.CliCommand
ALIAS_WILDCARDFields inherited from interface io.github.mmm.bean.ReadableBean
SUFFIX_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiondefault intExecutes thisCliCommand.io.github.mmm.property.booleans.BooleanPropertyVersion()Methods inherited from interface io.github.mmm.property.AttributeReadOnly
isReadOnlyMethods inherited from interface io.github.mmm.cli.command.CliCommand
hideFromHelpMethods inherited from interface io.github.mmm.marshall.MarshallableObject
writeObjectMethods inherited from interface io.github.mmm.bean.ReadableBean
copy, doEquals, doToString, get, getAliases, getJavaClass, getPropertyCount, isDynamic, isEqual, isPolymorphic, isPrototype, mapPropertyIds, newInstance, toString, validateMethods inherited from interface io.github.mmm.value.ReadablePath
parentPath, path, path, pathMethods inherited from interface io.github.mmm.marshall.UnmarshallableObject
readObjectMethods inherited from interface io.github.mmm.validation.Validatable
validateOrThrowMethods inherited from interface io.github.mmm.bean.WritableBean
addProperty, asTypeKey, createProperty, defineIdMapping, getOrCreateProperty, getProperties, getProperty, getRequiredProperty, getType, pathSegment, pathSegment, read, set, set, setDynamic, writeMethods inherited from interface io.github.mmm.value.WritablePath
parentPath
-
Method Details
-
Version
@PropertyAlias({"--version","-v"}) @Mandatory io.github.mmm.property.booleans.BooleanProperty Version()- Returns:
- flag to activate this command.
-
run
Description copied from interface:CliCommandExecutes thisCliCommand. Has to be implemented as default method.- Specified by:
runin interfaceCliCommand- Parameters:
main- theCliMainprogram.- Returns:
- the
exit code.
-