VirtualBox

Changeset 29594 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
May 18, 2010 7:45:58 AM (15 years ago)
Author:
vboxsync
Message:

VBoxService: help cosmetics

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r29438 r29594  
    110110static int VBoxServiceUsage(void)
    111111{
    112     RTPrintf("usage: %s [-f|--foreground] [-v|--verbose] [-i|--interval <seconds>]\n"
    113              "           [--disable-<service>] [--enable-<service>] [-h|-?|--help]\n", g_pszProgName);
    114 #ifdef RT_OS_WINDOWS
    115     RTPrintf("           [-r|--register] [-u|--unregister]\n");
    116 #endif
    117     for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++)
    118         RTPrintf("           %s\n", g_aServices[j].pDesc->pszUsage);
     112    RTPrintf("Usage:\n"
     113             " %-12s [-f|--foreground] [-v|--verbose] [-i|--interval <seconds>]\n"
     114             "              [--disable-<service>] [--enable-<service>] [-h|-?|--help]\n", g_pszProgName);
     115#ifdef RT_OS_WINDOWS
     116    RTPrintf("              [-r|--register] [-u|--unregister]\n");
     117#endif
     118    for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++)
     119        if (g_aServices[j].pDesc->pszUsage)
     120            RTPrintf("%s\n", g_aServices[j].pDesc->pszUsage);
    119121    RTPrintf("\n"
    120122             "Options:\n"
    121              "    -i | --interval          The default interval.\n"
    122              "    -f | --foreground        Don't daemonzie the program. For debugging.\n"
    123              "    -v | --verbose           Increment the verbosity level. For debugging.\n"
    124              "    -h | -? | --help         Show this message and exit with status 1.\n"
     123             "    -i | --interval         The default interval.\n"
     124             "    -f | --foreground       Don't daemonzie the program. For debugging.\n"
     125             "    -v | --verbose          Increment the verbosity level. For debugging.\n"
     126             "    -h | -? | --help        Show this message and exit with status 1.\n"
    125127             );
    126128#ifdef RT_OS_WINDOWS
    127     RTPrintf("    -r | --register          Installs the service.\n"
    128              "    -u | --unregister        Uninstall service.\n");
     129    RTPrintf("    -r | --register         Installs the service.\n"
     130             "    -u | --unregister       Uninstall service.\n");
    129131#endif
    130132
    131133    RTPrintf("\n"
    132              "Service specific options:\n");
    133     for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++)
    134     {
    135         RTPrintf("    --enable-%-10s Enables the %s service. (default)\n", g_aServices[j].pDesc->pszName, g_aServices[j].pDesc->pszName);
    136         RTPrintf("    --disable-%-9s Disables the %s service.\n", g_aServices[j].pDesc->pszName, g_aServices[j].pDesc->pszName);
     134             "Service-specific options:\n");
     135    for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++)
     136    {
     137        RTPrintf("    --enable-%-14s Enables the %s service. (default)\n", g_aServices[j].pDesc->pszName, g_aServices[j].pDesc->pszName);
     138        RTPrintf("    --disable-%-13s Disables the %s service.\n", g_aServices[j].pDesc->pszName, g_aServices[j].pDesc->pszName);
    137139        if (g_aServices[j].pDesc->pszOptions)
    138140            RTPrintf("%s", g_aServices[j].pDesc->pszOptions);
     
    377379{
    378380    int rc = VINF_SUCCESS;
    379     int iMain = VBoxServiceGetStartedServices();
     381    unsigned iMain = VBoxServiceGetStartedServices();
    380382
    381383    for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++)
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp

    r29547 r29594  
    386386    "Host-driven Guest Control",
    387387    /* pszUsage. */
    388    "[--control-interval <ms>]"
     388   "              [--control-interval <ms>]"
    389389    ,
    390390    /* pszOptions. */
    391     "    --control-interval  Specifies the interval at which to check for\n"
    392     "                        new control commands. The default is 1000 ms.\n"
     391    "    --control-interval      Specifies the interval at which to check for\n"
     392    "                            new control commands. The default is 1000 ms.\n"
    393393    ,
    394394    /* methods */
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp

    r28800 r29594  
    624624    "Time synchronization",
    625625    /* pszUsage. */
    626     "[--timesync-interval <ms>] [--timesync-min-adjust <ms>] "
    627     "[--timesync-latency-factor <x>] [--timesync-max-latency <ms>]"
    628     "[--timesync-set-threshold <ms>] [--timesync-set-start]"
     626    "              [--timesync-interval <ms>] [--timesync-min-adjust <ms>]\n"
     627    "              [--timesync-latency-factor <x>] [--timesync-max-latency <ms>]\n"
     628    "              [--timesync-set-threshold <ms>] [--timesync-set-start]"
    629629    ,
    630630    /* pszOptions. */
    631     "    --timesync-interval Specifies the interval at which to synchronize the\n"
    632     "                        time with the host. The default is 10000 ms.\n"
    633     "    --timesync-min-adjust\n"
    634     "                        The minimum absolute drift value measured in\n"
    635     "                        milliseconds to make adjustments for.\n"
    636     "                        The default is 1000 ms on OS/2 and 100 ms elsewhere.\n"
     631    "    --timesync-interval     Specifies the interval at which to synchronize the\n"
     632    "                            time with the host. The default is 10000 ms.\n"
     633    "    --timesync-min-adjust   The minimum absolute drift value measured in\n"
     634    "                            milliseconds to make adjustments for.\n"
     635    "                            The default is 1000 ms on OS/2 and 100 ms elsewhere.\n"
    637636    "    --timesync-latency-factor\n"
    638     "                        The factor to multiply the time query latency with to\n"
    639     "                        calculate the dynamic minimum adjust time.\n"
    640     "                        The default is 8 times.\n"
    641     "    --timesync-max-latency\n"
    642     "                        The max host timer query latency to accept.\n"
    643     "                        The default is 250 ms.\n"
     637    "                            The factor to multiply the time query latency with\n"
     638    "                            to calculate the dynamic minimum adjust time.\n"
     639    "                            The default is 8 times.\n"
     640    "    --timesync-max-latency  The max host timer query latency to accept.\n"
     641    "                            The default is 250 ms.\n"
    644642    "    --timesync-set-threshold\n"
    645     "                        The absolute drift threshold, given as milliseconds,\n"
    646     "                        where to start setting the time instead of trying to\n"
    647     "                        adjust it. The default is 20 min.\n"
    648     "    --timesync-set-start\n"
    649     "                        Set the time when starting the time sync service.\n"
     643    "                            The absolute drift threshold, given as milliseconds,\n"
     644    "                            where to start setting the time instead of trying to\n"
     645    "                            adjust it. The default is 20 min.\n"
     646    "    --timesync-set-start    Set the time when starting the time sync service.\n"
    650647    ,
    651648    /* methods */
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r29398 r29594  
    621621    "Virtual Machine Information",
    622622    /* pszUsage. */
    623     "[--vminfo-interval <ms>]"
     623    "              [--vminfo-interval <ms>]"
    624624    ,
    625625    /* pszOptions. */
    626     "    --vminfo-interval   Specifies the interval at which to retrieve the\n"
    627     "                        VM information. The default is 10000 ms.\n"
     626    "    --vminfo-interval       Specifies the interval at which to retrieve the\n"
     627    "                            VM information. The default is 10000 ms.\n"
    628628    ,
    629629    /* methods */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette