2022-07-21 20:08:37 +00:00
|
|
|
See the documentation for [`Command::multicall`][crate::Command::multicall] for rationale.
|
2021-11-10 22:15:30 +00:00
|
|
|
|
|
|
|
This example omits every command except true and false,
|
|
|
|
which are the most trivial to implement,
|
2022-01-05 16:54:33 +00:00
|
|
|
```console
|
2021-11-10 22:15:30 +00:00
|
|
|
$ busybox true
|
|
|
|
? 0
|
2022-01-05 16:54:33 +00:00
|
|
|
|
2021-11-10 22:15:30 +00:00
|
|
|
$ busybox false
|
|
|
|
? 1
|
2022-01-05 16:54:33 +00:00
|
|
|
|
2021-11-10 22:15:30 +00:00
|
|
|
```
|
2021-12-11 17:18:03 +00:00
|
|
|
*Note: without the links setup, we can't demonstrate the multicall behavior*
|
2021-11-10 22:15:30 +00:00
|
|
|
|
|
|
|
But includes the `--install` option as an example of why it can be useful
|
|
|
|
for the main program to take arguments that aren't applet subcommands.
|
2022-01-05 16:54:33 +00:00
|
|
|
```console
|
2021-11-10 22:15:30 +00:00
|
|
|
$ busybox --install
|
|
|
|
? failed
|
|
|
|
...
|
2022-01-05 16:54:33 +00:00
|
|
|
|
2021-11-10 22:15:30 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Though users must pass something:
|
2022-01-05 16:54:33 +00:00
|
|
|
```console
|
2021-11-10 22:15:30 +00:00
|
|
|
$ busybox
|
|
|
|
? failed
|
2022-08-26 14:40:23 +00:00
|
|
|
Usage:
|
2021-12-09 23:05:31 +00:00
|
|
|
busybox [OPTIONS] [APPLET]
|
2021-11-10 22:15:30 +00:00
|
|
|
|
2021-11-17 20:20:52 +00:00
|
|
|
APPLETS:
|
2022-07-22 19:58:27 +00:00
|
|
|
true does nothing successfully
|
2021-11-10 22:15:30 +00:00
|
|
|
false does nothing unsuccessfully
|
|
|
|
help Print this message or the help of the given subcommand(s)
|
2022-01-05 16:54:33 +00:00
|
|
|
|
2022-08-26 15:59:27 +00:00
|
|
|
Options:
|
|
|
|
--install <install> Install hardlinks for all subcommands in path
|
|
|
|
-h, --help Print help information
|
|
|
|
|
2021-11-10 22:15:30 +00:00
|
|
|
```
|