namirasoft-node-cli
Advanced tools
Comparing version
@@ -45,3 +45,8 @@ "use strict"; | ||
const option = this.options[i]; | ||
this.option_values[option.name] = option.defaults; | ||
if (option.args.length == 0) | ||
this.option_values[option.name] = false; | ||
else if (option.args.length == 1) | ||
this.option_values[option.name] = option.defaults[0]; | ||
else | ||
this.option_values[option.name] = option.defaults; | ||
option_provided[option.name] = false; | ||
@@ -48,0 +53,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"icon": "logo.png", | ||
"logo": "https://static.namirasoft.com/logo/npm-cli/base.png", | ||
"logo": "https://static.namirasoft.com/image/namirasoft/npm-cli/logo/base.png", | ||
"language": "ts", | ||
@@ -12,13 +12,15 @@ "framework": "npm", | ||
"private": false, | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"author": "Amir Abolhasani", | ||
"license": "MIT", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"author": "Amir Abolhasani", | ||
"license": "MIT", | ||
"scripts": {}, | ||
"scripts": { | ||
"build": "" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^20.11.30", | ||
"@types/node": "^20.12.8", | ||
"axios": "^1.6.8", | ||
"namirasoft-core": "^1.3.11" | ||
"namirasoft-core": "^1.3.20" | ||
} | ||
} |
@@ -42,3 +42,8 @@ import { BaseFinalCommandOptionSchema } from "./BaseFinalCommandOptionSchema"; | ||
const option = this.options[i]; | ||
this.option_values[option.name] = option.defaults; | ||
if (option.args.length == 0) | ||
this.option_values[option.name] = false; | ||
else if (option.args.length == 1) | ||
this.option_values[option.name] = option.defaults[0]; | ||
else | ||
this.option_values[option.name] = option.defaults; | ||
option_provided[option.name] = false; | ||
@@ -45,0 +50,0 @@ } |
@@ -29,3 +29,3 @@ { | ||
"isolatedModules": false, | ||
"removeComments": true, | ||
"removeComments": true | ||
}, | ||
@@ -32,0 +32,0 @@ "include": [ |
Sorry, the diff of this file is not supported yet
67274
1.16%1064
0.95%Updated
Updated