Revision 831c27b2 server/src/main.cpp

View differences:

server/src/main.cpp
46 46

  
47 47
int main(int argc, char *argv[]) {
48 48
    if ((argc != 3) && (argc != 4)){
49
        printf("> ERROR: no base scope passed to server!\n\nusage: %s <base scopename> <mw> [<audio output>]  (example: %s /flobi1/ RSB pulse )\n",argv[0],argv[0]);
49
        printf("> ERROR: no base scope passed to server!\n\nusage: %s <mw> <base scopename> [<audio output>]  (example: %s RSB /flobi1/ pulse )\n",argv[0],argv[0]);
50 50
        printf("          audio output is optional and can be {pulse,oss,alsa,null,sndio,..}\n\n");
51 51
        exit(EXIT_FAILURE);
52 52
    }
......
54 54
    printf("> hlrc_server starting\n");
55 55

  
56 56
    //fetch scope from cmd line
57
    std::string scope = argv[1];
57
    std::string scope = argv[2];
58 58

  
59 59
    //fetch middleware from cmd line
60
    std::string mw = argv[2];
60
    std::string mw = argv[1];
61 61
    to_upper(mw); //convert to uppercase
62 62

  
63 63
    //arbiter

Also available in: Unified diff