Closed mathieucarbou closed 3 years ago
If something has a Default value, should it also be Required?
If something has a Default value, should it also be Required?
Not always: i.e. offheap and data dirs are not required, could be empty, but by default a value is there so that a node can be started and used with some defaults.
But re-reading it again, I have updated the PR to simplify
If something has a Default value, should it also be Required?
Not always: i.e. offheap and data dirs are not required, could be empty, but by default a value is there so that a node can be started and used with some defaults.
But re-reading it again, I have updated the PR to simplify
I guess I'm trying to say that it isn't Required to be specified on the CLI if it has a Default, correct? So the definition of Required here seems off. Is it required to be specified or that it have a value?
If something has a Default value, should it also be Required?
Not always: i.e. offheap and data dirs are not required, could be empty, but by default a value is there so that a node can be started and used with some defaults. But re-reading it again, I have updated the PR to simplify
I guess I'm trying to say that it isn't Required to be specified on the CLI if it has a Default, correct? So the definition of Required here seems off. Is it required to be specified or that it have a value?
Oh I see! Yes that wording it bad because it matches what's required for the system to work, but does not indicate to the user what is required in the CLI !
I think we could remove complete optional and required!
If something has a Default value, should it also be Required?
Not always: i.e. offheap and data dirs are not required, could be empty, but by default a value is there so that a node can be started and used with some defaults. But re-reading it again, I have updated the PR to simplify
I guess I'm trying to say that it isn't Required to be specified on the CLI if it has a Default, correct? So the definition of Required here seems off. Is it required to be specified or that it have a value?
Oh I see! Yes that wording it bad because it matches what's required for the system to work, but does not indicate to the user what is required in the CLI !
I think we could remove complete optional and required!
@GaryWKeim : here is a new proposal (PR description updated).
If it works for you, you can merge.
This PR adds the missing requirement and defaults for each option for the node startup script.
CLI tools already have these things, they were missing from the startup script.
BEFORE
AFTER