profoundjs 6.0.2 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -194,6 +194,9 @@ Valid arguments for --silent mode:
194
194
  await forEachQuestion(async question => {
195
195
  let answer;
196
196
  if (args.silent === true) {
197
+ if (!argDefined(argDefs, args, question.id) && !question.required) {
198
+ return true;
199
+ }
197
200
  answer = getDefault(question);
198
201
  if (argDefined(argDefs, args, question.id)) {
199
202
  answer = args[question.id];
@@ -692,7 +695,7 @@ async function buildArgHelp() {
692
695
  const label = question.label;
693
696
  opts[name] = {
694
697
  label: label,
695
- default: getDefault(question)
698
+ default: question.required ? getDefault(question) : "** NONE **"
696
699
  };
697
700
  if (name.length > nameLen) {
698
701
  nameLen = name.length;
@@ -20,7 +20,8 @@
20
20
  "default": 8081,
21
21
  "min": 0,
22
22
  "max": 65535,
23
- "decimals": 0
23
+ "decimals": 0,
24
+ "required": true
24
25
  },
25
26
  {
26
27
  "id": "gitSupport",
@@ -12,7 +12,7 @@
12
12
  "profoundui"
13
13
  ],
14
14
  "dependencies": {
15
- "profoundjs": "^6.0.2"
15
+ "profoundjs": "^6.0.3"
16
16
  },
17
17
  "scripts": {
18
18
  "start": "node start.js"
Binary file