eunomia-bpf / eunomia-bpf/bpf-developer-tutorial

[BUG]使用ecli -h无法查看bpf程序的帮助信息

未關閉
#83 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug help wanted
主要語言
C
星號
4.3k
分支
602
平均合併
1 天 10 小時
30 天內合併 PR
1

描述

**Describe the bug**
ecli -h不能显示opensnoop 的帮助信息,显示的是ecli自身的help信息
```
# ecli package.json -h
ERROR: ld.so: object '/$LIB/libonion.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ecli subcommands, including run, push, pull

Usage: ecli [PROG] [EXTRA_ARGS]... [COMMAND]

Commands:
run run ebpf program
client Client operations
push Operations about pushing image to registry
pull Operations about pulling image from registry
help Print this message or the help of the given subcommand(s)

Arguments:
[PROG] Not preferred. Only for compatibility to older versions. Ebpf program URL or local path, set it `-` to read the program from stdin
[EXTRA_ARGS]... Not preferred. Only for compatibility to older versions. Extra args to the program; For wasm program, it will be passed directly to it; For JSON program, it will be passed to the generated argument parser

Options:
-h, --help Print help
```
**To Reproduce**
按照第4课的步骤做的,但是-h不能显示opensnoop 的帮助信息
https://github.com/eunomia-bpf/bpf-developer-tutorial/blob/main/src/4-opensnoop/README.md

**Expected behavior**
能显示opensnoop 的帮助信息

**Desktop (please complete the following information):**
用的腾讯云vm
```
# uname -a
Linux VM-0-11-tencentos 5.4.119-19.0009.37 #1 SMP Wed Oct 18 12:32:51 CST 2023 x86_64 x86_64 x86_64 GNU/Linux
[root@VM-0-11-tencentos 4-opensnoop]# cat /etc/redhat-release
TencentOS Server release 3.1 (Final)
```
ecc版本
```
ecc-rs 0.3.4
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。