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()) |