Skip to content

SPDXViewer: Return 1 when error occurs; 2 if bad args#303

Merged
goneall merged 7 commits into
spdx:masterfrom
bact:exit-code-viewer
Jul 20, 2026
Merged

SPDXViewer: Return 1 when error occurs; 2 if bad args#303
goneall merged 7 commits into
spdx:masterfrom
bact:exit-code-viewer

Conversation

@bact

@bact bact commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Implement exit codes as proposed in #299

Returns:

  • 0 - the document was pretty-printed successfully
  • 1 - the document could not be read, parsed, or printed
  • 2 - the command was invoked incorrectly (missing/invalid arguments)

bact added 3 commits July 20, 2026 03:30
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact added the enhancement New feature or request label Jul 20, 2026
bact added 4 commits July 20, 2026 03:41
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@goneall
goneall merged commit 2300878 into spdx:master Jul 20, 2026
1 check passed
@bact
bact deleted the exit-code-viewer branch July 20, 2026 18:00
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.

2 participants