Have writer use shared.buildPostPath()

This commit is contained in:
Will Boyd
2025-01-28 16:54:27 -05:00
parent afc22e7ba5
commit 896eaadb4f
2 changed files with 9 additions and 35 deletions
+1
View File
@@ -75,6 +75,7 @@ function getCommandLineAnswers(questions) {
// normalize and validate default answer
const question = questions.find((question) => camelcase(question.name) === key);
answers[key] = normalize(value, question.type, (errorMessage) => {
// this is formatted to match how commander displays other errors
commander.program.error(`error: option '--${question.name} <${question.type}>' argument '${value}' is invalid. ${errorMessage}`);
});
}