tool/CommandStates.cpp
branch1.4-foe
changeset 1709 63e4bc918640
parent 1636 b26170e168d9
child 1363 11c0b2caa253
equal deleted inserted replaced
1708:fae3a1759126 1709:63e4bc918640
    26     str << getName() << " [OPTIONS] <STATE>" << endl
    26     str << getName() << " [OPTIONS] <STATE>" << endl
    27         << endl
    27         << endl
    28         << getBriefDescription() << endl
    28         << getBriefDescription() << endl
    29         << endl
    29         << endl
    30         << "Arguments:" << endl
    30         << "Arguments:" << endl
    31         << "  STATE can be 'INIT', 'PREOP', 'SAFEOP', or 'OP'." << endl
    31         << "  STATE can be 'INIT', 'PREOP', 'BOOT', 'SAFEOP', or 'OP'." << endl
    32         << endl
    32         << endl
    33         << "Command-specific options:" << endl
    33         << "Command-specific options:" << endl
    34         << "  --alias    -a <alias>" << endl
    34         << "  --alias    -a <alias>" << endl
    35         << "  --position -p <pos>    Slave selection. See the help of" << endl
    35         << "  --position -p <pos>    Slave selection. See the help of" << endl
    36         << "                         the 'slaves' command." << endl
    36         << "                         the 'slaves' command." << endl
    61 
    61 
    62     if (stateStr == "INIT") {
    62     if (stateStr == "INIT") {
    63         state = 0x01;
    63         state = 0x01;
    64     } else if (stateStr == "PREOP") {
    64     } else if (stateStr == "PREOP") {
    65         state = 0x02;
    65         state = 0x02;
       
    66     } else if (stateStr == "BOOT") {
       
    67         state = 0x03;
    66     } else if (stateStr == "SAFEOP") {
    68     } else if (stateStr == "SAFEOP") {
    67         state = 0x04;
    69         state = 0x04;
    68     } else if (stateStr == "OP") {
    70     } else if (stateStr == "OP") {
    69         state = 0x08;
    71         state = 0x08;
    70     } else {
    72     } else {