src/main.cc

changeset 77
ad17801b1a36
parent 75
bf8c57437231
child 79
2425fa6a4f21
equal deleted inserted replaced
76:c8058716070a 77:ad17801b1a36
82 // Intepret command-line parameters: 82 // Intepret command-line parameters:
83 // -l: list commands 83 // -l: list commands
84 // I guess there should be a better way to do this. 84 // I guess there should be a better way to do this.
85 if (argc == 2 && !strcmp (argv[1], "-l")) 85 if (argc == 2 && !strcmp (argv[1], "-l"))
86 { 86 {
87 command_info* comm;
88 init_commands(); 87 init_commands();
89 printf ("Begin list of commands:\n"); 88 printf ("Begin list of commands:\n");
90 printf ("------------------------------------------------------\n"); 89 printf ("------------------------------------------------------\n");
91 90
92 for (command_info* comm : get_commands()) 91 for (command_info* comm : get_commands())

mercurial