File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -961,9 +961,6 @@ function readConfigurationOptions(y: Argv) {
961961 if ( idLabels ?. some ( idLabel => ! / .+ = .+ / . test ( idLabel ) ) ) {
962962 throw new Error ( 'Unmatched argument format: id-label must match <name>=<value>' ) ;
963963 }
964- if ( ! argv [ 'container-id' ] && ! idLabels ?. length && ! argv [ 'workspace-folder' ] ) {
965- throw new Error ( 'Missing required argument: One of --container-id, --id-label or --workspace-folder is required.' ) ;
966- }
967964 return true ;
968965 } ) ;
969966}
@@ -999,7 +996,7 @@ async function readConfiguration({
999996 } ;
1000997 let output : Log | undefined ;
1001998 try {
1002- const workspaceFolder = workspaceFolderArg ? path . resolve ( process . cwd ( ) , workspaceFolderArg ) : undefined ;
999+ const workspaceFolder = path . resolve ( process . cwd ( ) , workspaceFolderArg ?? '.' ) ;
10031000 const providedIdLabels = idLabel ? Array . isArray ( idLabel ) ? idLabel as string [ ] : [ idLabel ] : undefined ;
10041001 const configFile = configParam ? URI . file ( path . resolve ( process . cwd ( ) , configParam ) ) : undefined ;
10051002 const overrideConfigFile = overrideConfig ? URI . file ( path . resolve ( process . cwd ( ) , overrideConfig ) ) : undefined ;
You can’t perform that action at this time.
0 commit comments