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
Describe the bug
Running CLI command optic should return exit code 0 rather than 1.
To Reproduce
Steps to reproduce the behavior:
Install as instrcuted
run optic and look at the exit code (&& echo "Exit code: $?" || echo "Exit code: $?")
Expected behavior
Should result in exit code 0.
All other OAS Diffing tools tested so far result in a 0 exit code.
I'm using the exit code to check if a tool is installed or not.
Details (please complete the following information):
OS and version: MacOS 15.1
Optic version: 1.0.6
NodeJS version: 22.11.0
The text was updated successfully, but these errors were encountered:
Looks like this is a commander js default. Hesitant to change it because it's been the default behavior for years and might be relied on in some unexpected ways.
Can you run optic --version ? that returns 0
Describe the bug
Running CLI command
optic
should return exit code 0 rather than 1.To Reproduce
Steps to reproduce the behavior:
optic
and look at the exit code (&& echo "Exit code: $?" || echo "Exit code: $?"
)Expected behavior
Should result in exit code 0.
All other OAS Diffing tools tested so far result in a 0 exit code.
I'm using the exit code to check if a tool is installed or not.
Details (please complete the following information):
The text was updated successfully, but these errors were encountered: