tool/CommandConfig.cpp
changeset 1144 7dbfdd61812c
parent 1142 59be91dfcbe1
child 1147 0eac1ee8512a
--- a/tool/CommandConfig.cpp	Thu Jul 24 13:29:13 2008 +0000
+++ b/tool/CommandConfig.cpp	Thu Jul 24 14:56:57 2008 +0000
@@ -26,10 +26,9 @@
 {
     stringstream str;
 
-    str << "[OPTIONS]" << endl
-    	<< endl
-    	<< "Output information about the slave configurations" << endl
-    	<< "supplied by the application." << endl
+    str << getName() << " [OPTIONS]" << endl
+    	<< endl
+    	<< getBriefDescription() << endl
     	<< endl
     	<< "Without the --verbose option, slave configurations are" << endl
     	<< "output one-per-line. Example:" << endl
@@ -39,25 +38,25 @@
     	<< "|       |                      |  \\- Slave is operational."
 		<< endl
     	<< "|       |                      \\- Slave has been found." << endl
-    	<< "|       \\- Hexadecimal vendor ID and product code, separated"
-		<< endl
-    	<< "|          by a slash." << endl
-    	<< "\\- Decimal alias and position, separated by a colon." << endl
+    	<< "|       \\- Vendor ID and product code (both" << endl
+    	<< "|          hexadecimal)." << endl
+    	<< "\\- Alias and relative position (both decimal)." << endl
     	<< endl
     	<< "With the --verbose option given, the configured Pdos and" << endl
-    	<< "Sdos are additionally printed." << endl
+    	<< "Sdos are output in addition." << endl
     	<< endl
     	<< "Command-specific options:" << endl
-    	<< "  --verbose  -v  Show detailed configurations." << endl;
+    	<< "  --verbose -v  Show detailed configurations." << endl;
 
 	return str.str();
 }
 
 /*****************************************************************************/
 
-/*****************************************************************************/
-
-bool operator<(const ec_ioctl_config_t &a, const ec_ioctl_config_t &b)
+bool operator<(
+        const ec_ioctl_config_t &a,
+        const ec_ioctl_config_t &b
+        )
 {
     return a.alias < b.alias
         || (a.alias == b.alias && a.position < b.position);