Document some undocumented options (-d and -N) and commands

in interactive mode (?, xit and Debug).
This commit is contained in:
enami 1998-01-10 08:27:54 +00:00
parent ae49269de7
commit e3c03cb969
3 changed files with 28 additions and 19 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: interactive.c,v 1.13 1997/09/16 13:44:13 lukem Exp $ */
/* $NetBSD: interactive.c,v 1.14 1998/01/10 08:27:54 enami Exp $ */
/*
* Copyright (c) 1985, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)interactive.c 8.5 (Berkeley) 5/1/95";
#else
__RCSID("$NetBSD: interactive.c,v 1.13 1997/09/16 13:44:13 lukem Exp $");
__RCSID("$NetBSD: interactive.c,v 1.14 1998/01/10 08:27:54 enami Exp $");
#endif
#endif /* not lint */
@ -191,7 +191,7 @@ loop:
if (strncmp(cmd, "help", strlen(cmd)) != 0)
goto bad;
case '?':
fprintf(stderr, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
fprintf(stderr, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
"Available commands are:\n",
"\tls [arg] - list directory\n",
"\tcd arg - change directory\n",
@ -202,11 +202,12 @@ loop:
" list of files to be extracted\n",
"\textract - extract requested files\n",
"\tsetmodes - set modes of requested directories\n",
"\tquit - immediately exit program\n",
"\tquit or xit - immediately exit program\n",
"\twhat - list dump header information\n",
"\tverbose - toggle verbose flag",
" (useful with ``ls'')\n",
"\thelp or `?' - print this list\n",
"\tDebug - turn on debugging\n",
"If no `arg' is supplied, the current",
" directory is used\n");
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.16 1997/09/16 13:44:14 lukem Exp $ */
/* $NetBSD: main.c,v 1.17 1998/01/10 08:27:55 enami Exp $ */
/*
* Copyright (c) 1983, 1993
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/4/95";
#else
__RCSID("$NetBSD: main.c,v 1.16 1997/09/16 13:44:14 lukem Exp $");
__RCSID("$NetBSD: main.c,v 1.17 1998/01/10 08:27:55 enami Exp $");
#endif
#endif /* not lint */
@ -290,19 +290,19 @@ usage()
{
(void)fprintf(stderr,
"usage: %s -i [-chmvy] [-b blocksize] [-f file] [-s fileno]\n",
"usage: %s -i [-cdhmvyN] [-b blocksize] [-f file] [-s fileno]\n",
__progname);
(void)fprintf(stderr,
"\t%s -R [-cvy] [-b blocksize] [-f file] [-s fileno]\n",
"\t%s -R [-cdvyN] [-b blocksize] [-f file] [-s fileno]\n",
__progname);
(void)fprintf(stderr,
"\t%s -r [-cvy] [-b blocksize] [-f file] [-s fileno]\n",
"\t%s -r [-cdvyN] [-b blocksize] [-f file] [-s fileno]\n",
__progname);
(void)fprintf(stderr,
"\t%s -t [-chvy] [-b blocksize] [-f file] [-s fileno] [file ...]\n",
"\t%s -t [-cdhvy] [-b blocksize] [-f file] [-s fileno] [file ...]\n",
__progname);
(void)fprintf(stderr,
"\t%s -x [-chmvy] [-b blocksize] [-f file] [-s fileno] [file ...]\n",
"\t%s -x [-cdhmvyN] [-b blocksize] [-f file] [-s fileno] [file ...]\n",
__progname);
exit(1);
}

View File

@ -1,4 +1,4 @@
.\" $NetBSD: restore.8,v 1.20 1998/01/10 08:21:58 enami Exp $
.\" $NetBSD: restore.8,v 1.21 1998/01/10 08:27:56 enami Exp $
.\"
.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -43,32 +43,32 @@
.Sh SYNOPSIS
.Nm
.Fl i
.Op Fl chmvy
.Op Fl cdhmvyN
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
.Nm ""
.Fl R
.Op Fl cvy
.Op Fl cdvyN
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
.Nm ""
.Fl r
.Op Fl cvy
.Op Fl cdvyN
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
.Nm ""
.Fl t
.Op Fl chvy
.Op Fl cdhvy
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
.Op file ...
.Nm ""
.Fl x
.Op Fl chmvy
.Op Fl cdhmvyN
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
@ -145,7 +145,7 @@ from the dump.
will ask which volume the user wishes to mount.
The fastest way to extract a few files is to
start with the last volume, and work towards the first volume.
.It Ic help
.It Ic help , ?
List a summary of the available commands.
.It Ic \&ls Op Ar arg
List the current or specified directory.
@ -155,7 +155,7 @@ If the verbose
flag is set the inode number of each entry is also listed.
.It Ic pwd
Print the full pathname of the current working directory.
.It Ic quit
.It Ic quit , Ic xit
Restore immediately exits,
even if the extraction list is not empty.
.It Ic setmodes
@ -173,6 +173,10 @@ command to list the inode numbers of all entries.
It also causes
.Nm
to print out information about each file as it is extracted.
.It Ic what
List dump header information.
.It Ic Debug
Enable debugging.
.El
.It Fl R
.Nm
@ -275,6 +279,8 @@ old (pre-4.4) or new format file sytem. The
.Fl c
flag disables this check, and only allows reading a dump in the old
format.
.It Fl d
Enable debugging.
.It Fl f Ar file
Read the backup from
.Ar file ;
@ -337,6 +343,8 @@ preceded by its file type.
.It Fl y
Do not ask the user whether to abort the restore in the event of an error.
Always try to skip over the bad block(s) and continue.
.It Fl N
Do not perform actual writing to disk.
.El
.Sh DIAGNOSTICS
Complains if it gets a read error.