mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 10:03:51 +08:00
Implemented drive_no for command-line tool; binary base name is now a
parameter of the helpString method.
This commit is contained in:
+2
-2
@@ -340,7 +340,7 @@ int main(int argc, char **argv)
|
||||
cmd->execute(commandArgs);
|
||||
} catch (InvalidUsageException &e) {
|
||||
cerr << e.what() << endl << endl;
|
||||
cerr << binaryBaseName << " " << cmd->helpString();
|
||||
cerr << cmd->helpString(binaryBaseName);
|
||||
retval = 1;
|
||||
} catch (CommandException &e) {
|
||||
cerr << e.what() << endl;
|
||||
@@ -350,7 +350,7 @@ int main(int argc, char **argv)
|
||||
retval = 1;
|
||||
}
|
||||
} else {
|
||||
cout << binaryBaseName << " " << cmd->helpString();
|
||||
cout << cmd->helpString(binaryBaseName);
|
||||
}
|
||||
} else {
|
||||
cerr << "Ambiguous command abbreviation! Matching:" << endl;
|
||||
|
||||
Reference in New Issue
Block a user