Skip to content

Commit 580b383

Browse files
committed
Update help text
1 parent 8def825 commit 580b383

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

environment/main.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ void promptDimensions(unsigned short & w, unsigned short & h);
3131
int main(int argc, char ** argv) {
3232
srand(time(NULL)); //For all non-seeded randomness.
3333

34-
if(argc == 1) {
35-
std::cout << "You've provided the environment with no arguments.\n"
36-
<< "If this was intentional, please ignore this message.\n"
37-
<< "Else, please use the --help flag for usage details.\n";
38-
}
39-
4034
Networking networking;
4135
std::vector<std::string> * names = NULL;
4236
unsigned int id = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::high_resolution_clock().now().time_since_epoch()).count();
@@ -105,7 +99,8 @@ int main(int argc, char ** argv) {
10599
}
106100
else {
107101
if(unlabeledArgs.size() < 1) {
108-
std::cout << "Please provide the launch command string for at least one bot." << std::endl;
102+
std::cout << "Please provide the launch command string for at least one bot." << std::endl
103+
<< "Use the --help flag for usage details.\n";
109104
exit(1);
110105
}
111106
try {

0 commit comments

Comments
 (0)