Skip to content

fix funcmd reports 'not found: <file>' for a missing script - #17

Merged
funlang merged 1 commit into
mainfrom
fix-cli-missing-file
Oct 16, 2026
Merged

funlang merged 1 commit into
mainfrom
fix-cli-missing-file

Conversation

@taadis

@taadis taadis commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

修正: 脚本文件不存在时 funcmd 指名报错,不再只打 Usage
funcmd /path/x.fun(文件不存在)以前只输出 Usage 横幅,看不出哪里错。
现在在 stderr 输出 not found: /path/x.fun 并以非零退出;
无参数仍打 Usage 并退出 0,正常情况行为不变。

@funlang
funlang merged commit 2a4b163 into main Oct 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants