| 1313 | } |
| 1314 | |
| 1315 | void ASConsole::printHelp() const |
| 1316 | { |
| 1317 | (*_err) << endl; |
| 1318 | (*_err) << " Artistic Style " << g_version << endl; |
| 1319 | (*_err) << " Maintained by: Jim Pattee\n"; |
| 1320 | (*_err) << " Original Author: Tal Davidson\n"; |
| 1321 | (*_err) << endl; |
| 1322 | (*_err) << "Usage : astyle [options] Source1.cpp Source2.cpp [...]\n"; |
| 1323 | (*_err) << " astyle [options] < Original > Beautified\n"; |
| 1324 | (*_err) << endl; |
| 1325 | (*_err) << "When indenting a specific file, the resulting indented file RETAINS the\n"; |
| 1326 | (*_err) << "original file-name. The original pre-indented file is renamed, with a\n"; |
| 1327 | (*_err) << "suffix of \".orig\" added to the original filename.\n"; |
| 1328 | (*_err) << endl; |
| 1329 | (*_err) << "Wildcards (* and ?) may be used in the filename.\n"; |
| 1330 | (*_err) << "A \'recursive\' option can process directories recursively.\n"; |
| 1331 | (*_err) << endl; |
| 1332 | (*_err) << "By default, astyle is set up to indent C/C++/C#/Java files, with four\n"; |
| 1333 | (*_err) << "spaces per indent, a maximal indentation of 40 spaces inside continuous\n"; |
| 1334 | (*_err) << "statements, a minimum indentation of eight spaces inside conditional\n"; |
| 1335 | (*_err) << "statements, and NO formatting options.\n"; |
| 1336 | (*_err) << endl; |
| 1337 | (*_err) << "Option Format:\n"; |
| 1338 | (*_err) << "--------------\n"; |
| 1339 | (*_err) << " Long options (starting with '--') must be written one at a time.\n"; |
| 1340 | (*_err) << " Short options (starting with '-') may be appended together.\n"; |
| 1341 | (*_err) << " Thus, -bps4 is the same as -b -p -s4.\n"; |
| 1342 | (*_err) << endl; |
| 1343 | (*_err) << "Default Option File:\n"; |
| 1344 | (*_err) << "---------------------\n"; |
| 1345 | (*_err) << " Artistic Style looks for a default options file in the\n"; |
| 1346 | (*_err) << " following order:\n"; |
| 1347 | (*_err) << " 1. The contents of the ARTISTIC_STYLE_OPTIONS environment\n"; |
| 1348 | (*_err) << " variable if it exists.\n"; |
| 1349 | (*_err) << " 2. The file called .astylerc in the directory pointed to by the\n"; |
| 1350 | (*_err) << " HOME environment variable ( i.e. $HOME/.astylerc ).\n"; |
| 1351 | (*_err) << " 3. The file called astylerc in the directory pointed to by the\n"; |
| 1352 | (*_err) << " USERPROFILE environment variable ( i.e. %USERPROFILE%\\astylerc ).\n"; |
| 1353 | (*_err) << " If a default options file is found, the options in this file\n"; |
| 1354 | (*_err) << " will be parsed BEFORE the command-line options.\n"; |
| 1355 | (*_err) << " Long options within the default option file may be written without\n"; |
| 1356 | (*_err) << " the preliminary '--'.\n"; |
| 1357 | (*_err) << endl; |
| 1358 | (*_err) << "Bracket Style Options:\n"; |
| 1359 | (*_err) << "----------------------\n"; |
| 1360 | (*_err) << " --style=allman OR --style=ansi OR --style=bsd\n"; |
| 1361 | (*_err) << " OR --style=break OR -A1\n"; |
| 1362 | (*_err) << " Allman style formatting/indenting.\n"; |
| 1363 | (*_err) << " Broken brackets.\n"; |
| 1364 | (*_err) << endl; |
| 1365 | (*_err) << " --style=java OR --style=attach OR -A2\n"; |
| 1366 | (*_err) << " Java style formatting/indenting.\n"; |
| 1367 | (*_err) << " Attached brackets.\n"; |
| 1368 | (*_err) << endl; |
| 1369 | (*_err) << " --style=kr OR --style=k&r OR --style=k/r OR -A3\n"; |
| 1370 | (*_err) << " Kernighan & Ritchie style formatting/indenting.\n"; |
| 1371 | (*_err) << " Linux brackets.\n"; |
| 1372 | (*_err) << endl; |
nothing calls this directly
no outgoing calls
no test coverage detected