fix(cli): reject an empty JavaScript application path (#5265)
This commit is contained in:
1 parent
d8199ab6af
commit
1a945ce9ff
2 files changed
+28
-1
No files matched your search
@@ -297,7 +297,9 @@ const registerJavaScriptApplicationCommand = (
|
||||
logCliCommand(logger, CLI_COMMANDS.analyzeJavaScriptApplication, () =>
|
||||
runCliJavaScriptApplicationAnalysis(
|
||||
{
|
||||
input_path: absoluteCallerPath(args.path),
|
||||
// An empty path names no file; leave it for input validation.
|
||||
input_path:
|
||||
args.path === "" ? args.path : absoluteCallerPath(args.path),
|
||||
format: options.artifactFormat,
|
||||
integrity_policy: options.integrityPolicy,
|
||||
...(options.maxSemanticNodes === undefined
|
||||
|
||||
Reference in new issue
Block a user