(edit): Rewrite of undocumented and broken feature: if there are extra
arguments, they are interpreted as key-value pairs, and edit does not prompt for more. From Ron Koenderink. (player_coms): Document extended syntax.
This commit is contained in:
parent
e07fb30663
commit
be168eba05
3 changed files with 48 additions and 28 deletions
|
@ -287,7 +287,7 @@ struct cmndstr player_coms[] = {
|
|||
{"drop <cargo-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION> <COMM>", 1, drop, C_MOD, NORM + MONEY + CAP},
|
||||
{"dump <SECTS> [<fields>]", 0, dump, 0, NORM},
|
||||
{"echo [<string>]", 0, echo, 0, NORM},
|
||||
{"edit <country|land|unit|ship|plane|nuke>", 0, edit, C_MOD, GOD},
|
||||
{"edit <country|land|unit|ship|plane|nuke> [<KEY> <VALUE>]...", 0, edit, C_MOD, GOD},
|
||||
{"enable", 0, enab, C_MOD, GOD},
|
||||
{"enlist <SECTS> <NUM>", 2, enli, C_MOD, NORM + MONEY + CAP},
|
||||
{"execute <INPUT FILE>", 0, execute, 0, VIS},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue