Changeset 58144 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Oct 9, 2015 12:44:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp
r57415 r58144 54 54 55 55 56 /** 57 * Displays the program usage message. 56 /** @name Displays the program usage message. 57 * @{ 58 */ 59 60 /** 61 * Helper function that does indentation. 58 62 * 59 * @param u64Which 60 * 61 * @{ 62 */ 63 64 /** Helper function */ 65 static void doUsage(char const *line, char const *name = "", char const *command = "") 63 * @param pszLine Text. 64 * @param pszName Program name. 65 * @param pszCommand Command/option syntax. 66 */ 67 static void doUsage(char const *pszLine, char const *pszName = "", char const *pszCommand = "") 66 68 { 67 69 /* Allow for up to 15 characters command name length (VBoxControl.exe) with 68 70 * perfect column alignment. Beyond that there's at least one space between 69 71 * the command if there are command line parameters. */ 70 RTPrintf("%s %-*s%s%s\n", name, strlen(line) ? 35 - strlen(name) : 1, 71 command, strlen(line) ? " " : "", line); 72 RTPrintf("%s %-*s%s%s\n", 73 pszName, 74 *pszLine ? 35 - strlen(name) : 1, pszCommand, 75 *pszLine ? " " : "", pszLine); 72 76 } 73 77
Note:
See TracChangeset
for help on using the changeset viewer.