" --tech Monitor signals from the Technology interface\n"
" --manager Monitor signals from the Manager interface\n"
" help, --help, (no arguments) Show this dialogue\n"
- " interactive Drop into the interactive shell\n"
" exit, quit, q Quit interactive mode\n"
"\nNote: arguments and output are considered EXPERIMENTAL for now.\n\n");
}
int events;
gchan = g_io_channel_unix_new(fileno(stdin));
events = G_IO_IN | G_IO_ERR | G_IO_HUP | G_IO_NVAL;
- show_help();
interactive_conn = connection;
while (TRUE) {
exit(EXIT_FAILURE);
}
- if (argc < 2) {
- show_help();
- exit(EXIT_SUCCESS);
- }
-
- if (strcmp(argv[1], "interactive") == 0) {
- if (argc != 2) {
- fprintf(stderr, "Interactive cannot accept an argument,"
- " see help\n");
- return -EINVAL;
- }
+ if (argc < 2)
show_interactive(connection, main_loop);
- }
error = commands_no_options(connection, argv + 1, argc - 1);
if (error == -1) {