kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Converted spaces to tabs
rodzic
ac26c16ca6
commit
4bf8346d1e
|
@ -54,8 +54,8 @@ module.exports = {
|
||||||
let help = values.help || "";
|
let help = values.help || "";
|
||||||
let domain = values.metavar !== undefined ?
|
let domain = values.metavar !== undefined ?
|
||||||
values.metavar.replace(/^[<>]/g, "")
|
values.metavar.replace(/^[<>]/g, "")
|
||||||
.replace(/[<>]$/g, "")
|
.replace(/[<>]$/g, "")
|
||||||
.trim() :
|
.trim() :
|
||||||
"";
|
"";
|
||||||
|
|
||||||
switch((values.type || "").trim()){
|
switch((values.type || "").trim()){
|
||||||
|
@ -74,8 +74,8 @@ module.exports = {
|
||||||
default:
|
default:
|
||||||
type = "string";
|
type = "string";
|
||||||
value = values['default'] !== undefined ?
|
value = values['default'] !== undefined ?
|
||||||
values['default'].trim() :
|
values['default'].trim() :
|
||||||
"";
|
"";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (values['default'] === "True"){
|
if (values['default'] === "True"){
|
||||||
|
@ -95,9 +95,9 @@ module.exports = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// In the end, all values must be converted back
|
// In the end, all values must be converted back
|
||||||
// to strings (per OpenAPI spec which doesn't allow mixed types)
|
// to strings (per OpenAPI spec which doesn't allow mixed types)
|
||||||
value = String(value);
|
value = String(value);
|
||||||
|
|
||||||
if (Array.isArray(values.choices)){
|
if (Array.isArray(values.choices)){
|
||||||
type = "enum";
|
type = "enum";
|
||||||
|
|
Ładowanie…
Reference in New Issue