summaryrefslogtreecommitdiff
path: root/plugins/deramp.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-09 01:50:22 +0200
committerPetr Mrázek2011-08-09 01:50:22 +0200
commitcc19180ac00c767abe164ad275fab6ab4aeb0888 (patch)
tree9e95f92b3f4e5a5cb23409eb9a3acfd1d958acd2 /plugins/deramp.cpp
parent8fd437dbc1caebf7a8f8b8668e2fe6a2b907f498 (diff)
downloaddfhack-cc19180ac00c767abe164ad275fab6ab4aeb0888.tar.gz
dfhack-cc19180ac00c767abe164ad275fab6ab4aeb0888.tar.bz2
dfhack-cc19180ac00c767abe164ad275fab6ab4aeb0888.tar.xz
Add 'help' options to a bunch of commands.
Diffstat (limited to 'plugins/deramp.cpp')
-rw-r--r--plugins/deramp.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/deramp.cpp b/plugins/deramp.cpp
index a52ecf44..49ee415d 100644
--- a/plugins/deramp.cpp
+++ b/plugins/deramp.cpp
@@ -51,7 +51,17 @@ DFhackCExport command_result df_deramp (Core * c, vector <string> & parameters)
bool dirty= false;
int count=0;
int countbad=0;
-
+ for(int i = 0; i < parameters.size();i++)
+ {
+ if(parameters[i] == "help" || parameters[i] == "?")
+ {
+ c->con.print("This command does two things:\n"
+ "* If there are any ramps designated for removal, thyw will be instantly removed.\n"
+ "* Any ramps that don't have their counterpart will be removed (fixes bugs with caveins)\n"
+ );
+ return CR_OK;
+ }
+ }
c->Suspend();
DFHack::Maps *Mapz = c->getMaps();