31 const char *remote_file, *local_file;
32 static const struct mi_opt opts[] =
36 static const char prefix[] =
"-target-file-get";
40 error (_(
"-target-file-get: Usage: REMOTE_FILE LOCAL_FILE"));
42 remote_file = argv[oind];
43 local_file = argv[oind + 1];
55 const char *remote_file, *local_file;
56 static const struct mi_opt opts[] =
60 static const char prefix[] =
"-target-file-put";
64 error (_(
"-target-file-put: Usage: LOCAL_FILE REMOTE_FILE"));
66 local_file = argv[oind];
67 remote_file = argv[oind + 1];
80 const char *remote_file;
81 static const struct mi_opt opts[] =
85 static const char prefix[] =
"-target-file-delete";
89 error (_(
"-target-file-delete: Usage: REMOTE_FILE"));
91 remote_file = argv[oind];
mi_cmd_argv_ftype mi_cmd_target_file_delete
mi_cmd_argv_ftype mi_cmd_target_file_get
mi_cmd_argv_ftype mi_cmd_target_file_put
int mi_getopt(const char *prefix, int argc, const char *const *argv, const struct mi_opt *opts, int *oind, const char **oarg)
#define prefix(a, b, R, do)
void remote_file_delete(const char *remote_file, int from_tty)
void remote_file_put(const char *local_file, const char *remote_file, int from_tty)
void remote_file_get(const char *remote_file, const char *local_file, int from_tty)