Implement Command whois
Objective
Have a command, whois, which does the following
help page
BusyBox v1.24.1 (2016-02-19 11:20:55 SGT) multi-call binary.
Usage: whois [-h SERVER] [-p PORT] NAME...
Query WHOIS info about NAME
-h,-p Server to query
Done
- When the command complies with the above interface
- When it can be compiled as an applet into the slimbox binary
Demo
Show each command as an 'applet', and that it conforms to the interface:
$ slimbox whois --help
BusyBox v1.24.1 (2016-02-19 11:20:55 SGT) multi-call binary.
Usage: whois [-h SERVER] [-p PORT] NAME...
...
Show that when called as a symlink, the same happens
$ ln -s slimbox whois
$ ./whois --help
BusyBox v1.24.1 (2016-02-19 11:20:55 SGT) multi-call binary.
Usage: whois [-h SERVER] [-p PORT] NAME...
...