Skip to content

Command::multicall

since 0.1.0

Multiple-personality program dispatched on the binary name (argv[0]).

name = "busybox"
multicall = true
[args]
[[subcommands]]
name = "busybox"
subcommand-value-name = "APPLET"
subcommand-help-heading = "APPLETS"
[[subcommands.subcommands]]
name = "true"
[[subcommands.subcommands]]
name = "false"
Terminal window
/usr/bin/busybox true
Terminal window
claptrap__subcommand='busybox::true'
name = "busybox"
multicall = true
[args]
[[subcommands]]
name = "busybox"
subcommand-value-name = "APPLET"
subcommand-help-heading = "APPLETS"
[[subcommands.subcommands]]
name = "true"
[[subcommands.subcommands]]
name = "false"
[[subcommands]]
name = "true"
[[subcommands]]
name = "false"
Terminal window
/usr/bin/true
Terminal window
claptrap__subcommand='true'
name = "hostname"
multicall = true
[args]
[[subcommands]]
name = "hostname"
[[subcommands]]
name = "dnsdomainname"
Terminal window
/usr/bin/hostname dnsdomainname
Terminal window
error: unexpected argument 'dnsdomainname' found
Usage: hostname
For more information, try '--help'.