Skip to content

--version exits with an error code #429

@Flamefire

Description

@Flamefire

Brief problem description

The exit code cannot be used to determine if b2 --version ran successfully

Steps to reproduce the issue

b2 --version; echo $?

Actual behavior summary

b2 exits with exit code 1 indicating a problem

Expected behavior summary

The exit code should be zero such that b2 --version || echo "Failed" can be used.

The use case is code like:

if ! version=$(b2 --version); then
# Handle errors like b2 not available or executable
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions