We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fc3645 commit 6d0a1a1Copy full SHA for 6d0a1a1
packages/devextreme-cli/index.js
@@ -1,11 +1,19 @@
1
#!/usr/bin/env node
2
-const args = require('minimist')(process.argv.slice(2), {
+const rawArgs = process.argv.slice(2);
3
+const hasEmptyFlag = rawArgs.some(arg => arg === '--empty' || arg.startsWith('--empty='));
4
+
5
+const args = require('minimist')(rawArgs, {
6
alias: { v: 'version' },
7
boolean: ['empty']
8
});
9
10
const commands = args['_'];
11
delete args['_'];
12
13
+// Remove empty flag if it wasn't explicitly provided to prevent passing it to commands that don't support it
14
+if(!hasEmptyFlag) {
15
+ delete args.empty;
16
+}
17
const themeBuilder = require('./src/themebuider');
18
const application = require('./src/application');
19
const devextremeConfig = require('./src/utility/devextreme-config');
0 commit comments