DartdocOptionArgFile<T> class
A DartdocOption that works with command line arguments and
dartdoc_options
files.
- Inheritance
- Object
- DartdocOption<
T> - DartdocOptionArgFile
Constructors
- DartdocOptionArgFile(String name, T defaultsTo, ResourceProvider resourceProvider, {String abbr, bool mustExist = false, String help = '', bool hide = false, OptionKind optionIs = OptionKind.other, bool negatable = false, bool parentDirOverridesChild = false, bool splitCommas})
Properties
- abbr → String
-
For ArgParser, set to a single character to have a short version of the
command line argument.
read-only
- argName → String
-
The name of this option as a command line argument.
read-only, inherited
- argParser → ArgParser
-
read-only, inherited
- defaultsTo → T
-
This is the value returned if we couldn't find one otherwise.
final, inherited
- fieldName → String
-
The name of the option, with nested options joined by
.
. For example: [...]read-only, inherited - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- help → String
-
Text string for help passed on in command line options.
final, inherited
- hide → bool
-
For ArgParser, set to true to hide this from the help menu.
read-only
- isDir → bool
-
Set to true if this option represents the name of a directory.
read-only, inherited
- isFile → bool
-
Set to true if this option represents the name of a file.
read-only, inherited
- isGlob → bool
-
Set to true if this option represents a glob.
read-only, inherited
-
keys
→ Iterable<
String> -
All object names starting at the root.
read-only, inherited
- mustExist → bool
-
Set to true if DartdocOption subclasses should validate that the
directory or file exists. Does not imply validation of defaultsTo,
and requires that one of isDir or isFile is set.
final, inherited
- name → String
-
The name of this option, not including the names of any parents.
final, inherited
- negatable → bool
-
For ArgParser, set to true if the argument can be negated with
--no
on the command line.read-only - optionIs → OptionKind
-
final, inherited
-
parent
↔ DartdocOption<
Object> -
The parent of this DartdocOption, or null if this is the root.
read / write, inherited
- parentDirOverridesChild → bool
-
If true, the parent directory's value overrides the child's. [...]
read-only
- resourceProvider → ResourceProvider
-
final, inherited
-
root
→ DartdocOption<
Object> -
The root DartdocOption containing this object, or this if the object
has no parent.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- splitCommas → bool
-
For ArgParser, set to true if a single string argument will be broken
into a list on commas.
read-only
Methods
-
add(
DartdocOption< Object> option) → void -
Adds a DartdocOption to the children of this DartdocOption.
inherited
-
addAll(
Iterable< DartdocOption< options) → voidObject> > -
Adds a list of dartdoc options to the children of this DartdocOption.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
parseArguments(
List< String> arguments) → void -
Call this with argv to set up the argument overrides. Applies to all
children.
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
traverse(
void visit(DartdocOption< Object> option)) → void -
Apply the function
visit
to this and all children.inherited -
valueAt(
Folder dir) → T -
Try to find an explicit argument setting this value, but if not, fall back
to files finally, the default.
override
-
valueAtCurrent(
) → T -
Calls valueAt with the working directory at the start of the program.
inherited
-
valueAtElement(
Element element) → T -
Calls valueAt on the directory this element is defined in.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
-
operator [](
String name) → DartdocOption -
Get the immediate child of this node named
name
.inherited