exit status updated and shown in manpage
This commit is contained in:
parent
fb6842153b
commit
22799d148d
4
gcp
4
gcp
|
@ -43,7 +43,7 @@ try:
|
|||
except ImportError,e:
|
||||
error(_("Error during import"))
|
||||
error(_("Please check dependecies:"),e)
|
||||
exit(2)
|
||||
exit(1)
|
||||
try:
|
||||
from progressbar import ProgressBar, Percentage, Bar, ETA, FileTransferSpeed
|
||||
pbar_available=True
|
||||
|
@ -622,7 +622,7 @@ class GCP():
|
|||
error (_("Invalide --preserve value\nvalid values are:"))
|
||||
for value in const_PRESERVE:
|
||||
error('- %s' % value)
|
||||
exit(2)
|
||||
exit(1)
|
||||
else:
|
||||
options.preserve = preserve
|
||||
|
||||
|
|
8
gcp.1
8
gcp.1
|
@ -102,6 +102,14 @@ List the names of source file lists.
|
|||
.TP
|
||||
.B \-\-sources\-full\-list
|
||||
List the names of source file lists, including their content.
|
||||
.SH EXIT STATUS
|
||||
The exit status can be:
|
||||
.IP \[bu] 2
|
||||
\fB0\fP if files have been copied correctly or if an other instance of gcp is already running and will do the copy.
|
||||
.IP \[bu]
|
||||
\fB1\fP if at least one file has not been copied, or if something went wrong.
|
||||
.IP \[bu]
|
||||
\fB2\fP if all files have been copied but with some issues
|
||||
.SH LIMITS
|
||||
Timestamps preservation with \-\-preserve option is limited by the os python
|
||||
module on POSIX systems. Currently, python only returns timestamps in float
|
||||
|
|
Loading…
Reference in New Issue