diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-19 12:09:18 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-19 12:09:18 +0100 |
commit | 07b1d9ca86567344a2dbac05f0d336890a4fb660 (patch) | |
tree | 642d3718ea96b2468f84b933f62104f86a13e587 | |
parent | dab7eb1e03e28d08036eaf1fcee9981cb98a0a92 (diff) |
Better help text from './sim'
-rw-r--r-- | sim.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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){ |