mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2024-06-01 08:41:32 +00:00
proper -h help.
This commit is contained in:
parent
adbf776d31
commit
686bee2578
|
@ -253,7 +253,19 @@ int interactive(Environment &env, phase1 &p, phase2& p2) {
|
||||||
|
|
||||||
void help() {
|
void help() {
|
||||||
|
|
||||||
|
#undef _
|
||||||
|
#define _(x) puts(x)
|
||||||
|
|
||||||
|
_("MPW Shell " VERSION " (" VERSION_DATE ")");
|
||||||
|
_("mpw-shell [option...]");
|
||||||
|
_(" -d name[=value] # define variable name");
|
||||||
|
_(" -v # be verbose (echo = 1)");
|
||||||
|
_(" -h # display help information");
|
||||||
|
_(" -c string # read commands from string");
|
||||||
|
|
||||||
|
#undef _
|
||||||
}
|
}
|
||||||
|
|
||||||
void define(Environment &env, const std::string &s) {
|
void define(Environment &env, const std::string &s) {
|
||||||
|
|
||||||
auto pos = s.find('=');
|
auto pos = s.find('=');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user