101 maxWidth = strlen(cmd->name); |
101 maxWidth = strlen(cmd->name); |
102 } |
102 } |
103 } |
103 } |
104 |
104 |
105 cerr |
105 cerr |
106 << "Usage: " << binaryBaseName << " <COMMAND> [OPTIONS]" << endl |
106 << "Usage: " << binaryBaseName << " <COMMAND> [OPTIONS] [ARGUMENTS]" |
107 << "Commands:" << endl; |
107 << endl << endl |
|
108 << "Commands (can be abbreviated):" << endl; |
108 |
109 |
109 cerr << left; |
110 cerr << left; |
110 for (cmd = commands; cmd < cmdEnd; cmd++) { |
111 for (cmd = commands; cmd < cmdEnd; cmd++) { |
111 cerr << " " << setw(maxWidth) << cmd->name |
112 cerr << " " << setw(maxWidth) << cmd->name |
112 << " " << cmd->briefDesc << endl; |
113 << " " << cmd->briefDesc << endl; |
113 } |
114 } |
114 |
115 |
115 cerr |
116 cerr |
116 << "Commands can be abbreviated." << endl |
117 << endl |
117 << "Global options:" << endl |
118 << "Global options:" << endl |
118 << " --master -m <master> Index of the master to use. Default: 0" |
119 << " --master -m <master> Index of the master to use. Default: 0." |
119 << endl |
120 << endl |
120 << " --slave -s <index> Positive numerical ring position," |
121 << " --force -f Force a command." << endl |
121 << endl |
|
122 << " or 'all' for all slaves (default)." |
|
123 << endl |
|
124 << " --type -t <type> Forced Sdo data type." << endl |
|
125 << " --force -f Force action." << endl |
|
126 << " --quiet -q Output less information." << endl |
122 << " --quiet -q Output less information." << endl |
127 << " --verbose -v Output more information." << endl |
123 << " --verbose -v Output more information." << endl |
128 << " --help -h Show this help." << endl |
124 << " --help -h Show this help." << endl |
|
125 << endl |
|
126 << "Numerical values can be specified either with decimal " |
|
127 << "(no prefix)," << endl |
|
128 << "octal (prefix '0') or hexadecimal (prefix '0x') base." << endl |
|
129 << endl |
129 << "Call '" << binaryBaseName |
130 << "Call '" << binaryBaseName |
130 << " <COMMAND> --help' for command-specific help." << endl |
131 << " <COMMAND> --help' for command-specific help." << endl |
|
132 << endl |
131 << "Send bug reports to " << PACKAGE_BUGREPORT << "." << endl; |
133 << "Send bug reports to " << PACKAGE_BUGREPORT << "." << endl; |
132 } |
134 } |
133 |
135 |
134 /*****************************************************************************/ |
136 /*****************************************************************************/ |
135 |
137 |