aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-19 12:09:18 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-19 12:09:18 +0100
commit07b1d9ca86567344a2dbac05f0d336890a4fb660 (patch)
tree642d3718ea96b2468f84b933f62104f86a13e587
parentdab7eb1e03e28d08036eaf1fcee9981cb98a0a92 (diff)
Better help text from './sim'
-rw-r--r--sim.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/sim.cpp b/sim.cpp
index 95d20d2..e5b2bf0 100644
--- a/sim.cpp
+++ b/sim.cpp
@@ -48,7 +48,14 @@ int parseInt(const char *str){
}
void usage(char **argv){
- cerr<<"Usage: "<<argv[0]<<" [-r <fname>]* [-p <fname> <x> <y> <heading>]* [-s <sleeptime>] [-t] [-B]"<<endl;
+ cerr<<"Usage: "<<argv[0]<<" [-r <fname>]* [-p <fname> <x> <y> <heading>]* "
+ <<"[-s <sleeptime>] [-t] [-B]"<<endl
+ <<" -r Place robot at random position"<<endl
+ <<" -p Place robot at specified position"<<endl
+ <<" -s Modify usecs to sleep between frames"<<endl
+ <<" -t Don't sleep between frames but wait until keypress"<<endl
+ <<" -B Batch mode: simulate until no more active robots, then robot locations;"<<endl
+ <<" columns: team x y heading"<<endl;
}
int main(int argc,char **argv){