Skip to content

Commit

Permalink
Support part of bsd-style command-line usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Moe-hacker committed Dec 18, 2024
1 parent db5b0c2 commit c24139e
Show file tree
Hide file tree
Showing 4 changed files with 380 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# v3.9:
* Support part of bsd-style command-line usage.
# v3.8:
* Support more platforms, currently supports: arm64, armv7, armhf, riscv64, i386, loong64, s390x, ppc64le and x86_64.
* Improve rootless container support.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ wget -q -O - https://ruri.nekofeng.com | bash -s -- -s
This will automatically download ruri binary to `./ruri`.
# Usage:
See [USAGE](doc/USAGE.md) to explore all features of ruri.
# About command-line:
BSD style usage is partially supported now, for example, you can use `-pW /root`, but `-W/root` is not allowed.
# WARNING:
> [!WARNING]
> ruri should always be executed with root privileges(sudo), and do not set SUID or any capability on it!
Expand Down
2 changes: 1 addition & 1 deletion src/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void ruri_show_helps(void)
cprintf("{base}(*10) : This option need net ns, and will enable unshare feature by default\n");
cprintf("{base}(*11) : For example, `-I kvm 10 232` or `-I dri/card0 226 0`\n");
cprintf("{base}(*12) : This feature might not work. The value is in seconds. This feature will auto enable unshare\n");
cprintf("{base}{clear}\n");
cprintf("\n{base}Note:\n") cprintf("{base}BSD style usage is partially supported now, for example, you can use `-pW /root`, but `-W/root` is not allowed.\n") cprintf("{base}{clear}\n");
}
// For `ruri -H`.
void ruri_show_examples(void)
Expand Down
Loading

0 comments on commit c24139e

Please sign in to comment.