diff --git a/src/junosc.c b/src/junosc.c
index e08cc7788fb631edbac7aae7ddf334d977697f06..4b1bb6bfe1b17657a7ef42bcb8ace87931a99f4e 100644 (file)
--- a/src/junosc.c
+++ b/src/junosc.c
exit_usage(char *name, int status)
{
printf(
-"Usage: %s -H <host> [<options>] <command>\n"
+"Usage: %s -H <host> [<options>] <method>\n"
"\nOptions:\n"
" -H <host> hostname to connect to\n"
char *username = NULL;
char *password = NULL;
- char *command = NULL;
+ char *method = NULL;
junos_t *junos;
xmlDocPtr doc;
}
if (optind != argc - 1) {
- fprintf(stderr, "Missing command name\n");
+ fprintf(stderr, "Missing method name\n");
exit_usage(argv[0], 1);
}
- command = argv[optind];
+ method = argv[optind];
++optind;
if (use_netrc
}
junos_clear_error(junos);
- doc = junos_simple_command(junos, command);
+ doc = junos_simple_method(junos, method);
if (doc) {
xmlDocFormatDump(stderr, doc, /* format = */ 1);
xmlFreeDoc(doc);
}
else {
- fprintf(stderr, "Command failed: %s\n", junos_get_errstr(junos));
+ fprintf(stderr, "Method failed: %s\n", junos_get_errstr(junos));
}
junos_disconnect(junos);