You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'workspace-folder': {type: 'string',required: true,description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.'},
510
+
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.'},
511
511
'config': {type: 'string',description: 'devcontainer.json path. The default is to use .devcontainer/devcontainer.json or, if that does not exist, .devcontainer.json in the workspace folder.'},
@@ -1107,14 +1130,20 @@ async function readConfiguration({
1107
1130
functionoutdatedOptions(y: Argv){
1108
1131
returny.options({
1109
1132
'user-data-folder': {type: 'string',description: 'Host path to a directory that is intended to be persisted and share state between sessions.'},
1110
-
'workspace-folder': {type: 'string',required: true,description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.'},
1133
+
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.'},
1111
1134
'config': {type: 'string',description: 'devcontainer.json path. The default is to use .devcontainer/devcontainer.json or, if that does not exist, .devcontainer.json in the workspace folder.'},
'log-level': {choices: ['info'as'info','debug'as'debug','trace'as'trace'],default: 'info'as'info',description: 'Log level for the --terminal-log-file. When set to trace, the log level for --log-file will also be set to trace.'},
'terminal-columns': {type: 'number',implies: ['terminal-rows'],description: 'Number of columns to render the output for. This is required for some of the subprocesses to correctly render their output.'},
1116
1139
'terminal-rows': {type: 'number',implies: ['terminal-columns'],description: 'Number of rows to render the output for. This is required for some of the subprocesses to correctly render their output.'},
1117
-
});
1140
+
})
1141
+
.check(argv=>{
1142
+
if(!argv['workspace-folder']&&!argv['config']){
1143
+
thrownewError('Missing required argument: Either --workspace-folder or --config is required.');
0 commit comments