summaryrefslogtreecommitdiff
path: root/cmds-send.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-send.c')
-rw-r--r--cmds-send.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmds-send.c b/cmds-send.c
index 9d49ce9f..dcb66076 100644
--- a/cmds-send.c
+++ b/cmds-send.c
@@ -524,11 +524,8 @@ int cmd_send(int argc, char **argv)
}
}
- if (optind == argc) {
- fprintf(stderr, "ERROR: send needs path to snapshot\n");
- ret = 1;
- goto out;
- }
+ if (optind == argc)
+ usage(cmd_send_usage);
if (outname != NULL) {
send.dump_fd = creat(outname, 0600);