Commit f9e0dd9
committed
AbstractModuleItem: mark items required by default
The required attribute of the @parameter annotation has a default value
of true. The default value of ModuleItem#isRequired() is supposed to
match that. This discrepancy (and hence bug) is probably a holdover
from before all parameters were required by default, long ago.
Without this change, all scripting parameters -- and really *all*
other ModuleItem implementation besides CommandModuleItem -- report
their parameters as required=false by default, which is inconsistent
with commands. It also causes problems with certain forms of
interoperability, such as OMERO, which does not bother to prompt for
parameter values on the command line if they are marked optional.1 parent 5b4fd55 commit f9e0dd9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments