forked from miekg/rdup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
usage-up.c
35 lines (32 loc) · 984 Bytes
/
usage-up.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Copyright (c) 2009 - 2011 Miek Gieben
* See LICENSE for the license
*/
#include "rdup-up.h"
extern char *PROGNAME;
void
usage_up(FILE *f)
{
fprintf(f, _("USAGE: %s [OPTION]... DIRECTORY\n"), PROGNAME);
fputs( _("\
Update a directory tree with an rdup archive.\n\
\n\
DIRECTORY\twhere to unpack the archive\n\
\n\
\n\
OPTIONS:\n\
-t\t\tcreate DIRECTORY if it does not exist\n\
-s NUM\t\tstrip NUM leading path components\n\
-r PATH\t\tstrip PATH from each pathname\n\
-n\t\tdry run, do not touch the filesystem\n\
-V\t\tprint version\n\
-T\t\tshow table of contents. DIRECTORY is optional\n\
-u\t\tdo not create ._rdup_. with user/group information\n\
-q\t\tsilence \'chown\' failures even when \'root\'\n\
-h\t\tthis help\n\
-v\t\tbe more verbose and print processed files to stdout\n\
\n\
Report bugs to <[email protected]>\n\
Licensed under the GPL version 3.\n\
See the file LICENSE in the source distribution of rdup.\n"), f);
}