tools/main.cpp
changeset 957 ed5ac2e83495
parent 956 d9b9bc794d10
child 960 36e460ffbb5e
equal deleted inserted replaced
956:d9b9bc794d10 957:ed5ac2e83495
    35 		<< "Commands:" << endl
    35 		<< "Commands:" << endl
    36         << "  data               Output binary domain process data." << endl
    36         << "  data               Output binary domain process data." << endl
    37         << "  debug              Set the master debug level." << endl
    37         << "  debug              Set the master debug level." << endl
    38         << "  domain             Show domain information." << endl
    38         << "  domain             Show domain information." << endl
    39         << "  list (ls, slaves)  List all slaves (former 'lsec')." << endl
    39         << "  list (ls, slaves)  List all slaves (former 'lsec')." << endl
       
    40         << "  master             Show master information." << endl
    40         << "  pdos               List Pdo mapping of given slaves." << endl
    41         << "  pdos               List Pdo mapping of given slaves." << endl
    41         << "  xml                Generate slave information xml." << endl
    42         << "  xml                Generate slave information xml." << endl
    42 		<< "Global options:" << endl
    43 		<< "Global options:" << endl
    43         << "  --master  -m <master>  Index of the master to use. Default: "
    44         << "  --master  -m <master>  Index of the master to use. Default: "
    44 		<< DEFAULT_MASTER << endl
    45 		<< DEFAULT_MASTER << endl
   155             master.setDebug(commandArgs);
   156             master.setDebug(commandArgs);
   156         } else if (command == "domain") {
   157         } else if (command == "domain") {
   157             master.showDomains(domainIndex);
   158             master.showDomains(domainIndex);
   158 		} else if (command == "list" || command == "ls" || command == "slaves") {
   159 		} else if (command == "list" || command == "ls" || command == "slaves") {
   159             master.listSlaves();
   160             master.listSlaves();
       
   161 		} else if (command == "master") {
       
   162             master.showMaster();
   160         } else if (command == "pdos") {
   163         } else if (command == "pdos") {
   161             master.listPdos(slavePosition);
   164             master.listPdos(slavePosition);
   162         } else if (command == "xml") {
   165         } else if (command == "xml") {
   163             master.generateXml(slavePosition);
   166             master.generateXml(slavePosition);
   164         } else {
   167         } else {