Skip to content

Verify: Returns 1 for invalid SPDX doc; 2 for bad args#300

Open
bact wants to merge 3 commits into
spdx:masterfrom
bact:exit-code-2
Open

Verify: Returns 1 for invalid SPDX doc; 2 for bad args#300
bact wants to merge 3 commits into
spdx:masterfrom
bact:exit-code-2

Conversation

@bact

@bact bact commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Implement exit codes as proposed in #299

bact added 2 commits July 16, 2026 13:57
run() returns an exit-status int instead of calling System.exit()
directly. No behavior change.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
USAGE_ERROR_STATUS=2 for bad invocation (missing args, invalid file type, invalid file name);

ERROR_STATUS=1 stays for invalid or unreadable SPDX documents.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact added the enhancement New feature or request label Jul 16, 2026
@bact bact marked this pull request as draft July 16, 2026 13:22
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant