close
Skip to content

bug: running asdf with incorrect command returns 0 exit code #1928

@artem-nefedov

Description

@artem-nefedov

Describe the Bug

If asdf is called with incorrect (non-existent) command, I expect exit code to be non-zero.

Steps to Reproduce

asdf foo-bar
echo $?

Expected Behaviour

Exit code is non-zero

Actual Behaviour

Exit code is 0

Environment

➜ asdf info    
OS:
Darwin DAR-CF933GCFKQ 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec  6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000 arm64

SHELL:
zsh 5.9 (arm64-apple-darwin24.0)

BASH VERSION:
5.2.37(1)-release

ASDF VERSION:
0.16.2

asdf plugins affected (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions