summaryrefslogtreecommitdiffstats
path: root/system/unar/Extra
diff options
context:
space:
mode:
Diffstat (limited to 'system/unar/Extra')
-rw-r--r--system/unar/Extra/lsar.159
-rw-r--r--system/unar/Extra/lsar.bash_completion16
-rw-r--r--system/unar/Extra/unar.177
-rw-r--r--system/unar/Extra/unar.bash_completion23
4 files changed, 175 insertions, 0 deletions
diff --git a/system/unar/Extra/lsar.1 b/system/unar/Extra/lsar.1
new file mode 100644
index 0000000000..73ac7afa24
--- /dev/null
+++ b/system/unar/Extra/lsar.1
@@ -0,0 +1,59 @@
+.TH LSAR 1 2011-09-26 "The Unarchiver" "User Commands"
+.SH NAME
+lsar \- list archive file contents
+.SH SYNOPSIS
+.B lsar
+[\fIOPTION\fR]... \fIARCHIVE\fR...
+.SH DESCRIPTION
+List the contents of \fIARCHIVE\fRs.
+.SH OPTIONS
+.TP
+.BR \-l ", " \-long
+Print more information about each file in the archive.
+.TP
+.BR \-L ", " \-verylong
+Print all available information about each file in the archive.
+.TP
+.BR \-t ", " \-test
+Test the integrity of the files in the archive, if possible.
+.TP
+.BR \-p ", " \-password " \fIPASSWORD"
+The password to use for decrypting protected archives.
+.TP
+.BR \-e ", " \-encoding " \fIENCODING"
+The encoding to use for filenames in the archive, when it is not
+known. If not specified, the program attempts to auto-detect the
+encoding used. Use "help" or "list" as the argument to give a listing
+of all supported encodings.
+.TP
+.BR \-E ", " \-password\-encoding " \fIENCODING"
+The encoding to use for the password for the archive, when it is not
+known. If not specified, then either the encoding given by the
+\-encoding option or the auto-detected encoding is used.
+.TP
+.BR \-pe ", " \-print\-encoding
+Print the auto-detected encoding and the confidence factor after the
+file list.
+.TP
+.BR \-i ", " \-indexes
+Instead of specifying the files to list as filenames or wildcard
+patterns, specify them as indexes.
+.TP
+.BR \-j ", " \-json
+Print the listing in JSON format.
+.TP
+.BR \-ja ", " \-json\-ascii
+Print the listing in JSON format, encoded as pure ASCII text.
+.TP
+.BR \-nr ", " \-no\-recursion
+Do not attempt to list the contents of archives contained in other
+archives. For instance, when listing a .tar.gz file, only list
+the .tar file and not its contents.
+.TP
+.BR \-h ", " \-help
+Display help information.
+.TP
+.BR \-v ", " \-version
+Print version and exit.
+.SH SEE ALSO
+.BR unar (1)
diff --git a/system/unar/Extra/lsar.bash_completion b/system/unar/Extra/lsar.bash_completion
new file mode 100644
index 0000000000..14b5dee6d3
--- /dev/null
+++ b/system/unar/Extra/lsar.bash_completion
@@ -0,0 +1,16 @@
+__lsar()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ opts="--long --verylong --test --password ---encoding --password-encoding \
+ --print-encoding --indexes --json --json-ascii --no-recursion --help \
+ --version"
+ if [[ ${cur} == -* ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+}
+
+complete -o bashdefault -A file -F __lsar lsar
+
diff --git a/system/unar/Extra/unar.1 b/system/unar/Extra/unar.1
new file mode 100644
index 0000000000..3b3758f37b
--- /dev/null
+++ b/system/unar/Extra/unar.1
@@ -0,0 +1,77 @@
+.TH unar 1 2011-09-26 "The Unarchiver" "User Commands"
+.SH NAME
+unar \- extract archive file contents
+.SH SYNOPSIS
+.B unar
+[\fIOPTION\fR]... \fIARCHIVE\fR [\fIFILE\fR]...
+.SH DESCRIPTION
+Extract \fIFILE\fRs or the contents of \fIARCHIVE\fR.
+.SH OPTIONS
+.TP
+.BR \-o ", " \-output\-directory " \fIDIRECTORY"
+The directory to write the contents of the archive to. Defaults to
+the current directory.
+.TP
+.BR \-f ", " \-force\-overwrite
+Always overwrite files when a file to be unpacked already exists on
+disk. By default, the program asks the user if possible, otherwise
+skips the file.
+.TP
+.BR \-r ", " \-force\-rename
+Always rename files when a file to be unpacked already exists on disk.
+.TP
+.BR \-s ", " \-force\-skip
+Always skip files when a file to be unpacked already exists on disk.
+.TP
+.BR \-d ", " \-force\-directory
+Always create a containing directory for the contents of the unpacked
+archive. By default, a directory is created if there is more than one
+top-level file or folder.
+.TP
+.BR \-D ", " \-no\-directory
+Never create a containing directory for the contents of the unpacked
+archive.
+.TP
+.BR \-p ", " \-password " \fIPASSWORD"
+The password to use for decrypting protected archives.
+.TP
+.BR \-e ", " \-encoding " \fIENCODING"
+The encoding to use for filenames in the archive, when it is not
+known. If not specified, the program attempts to auto-detect the
+encoding used. Use "help" or "list" as the argument to give a listing
+of all supported encodings.
+.TP
+.BR \-E ", " \-password\-encoding " \fIENCODING"
+The encoding to use for the password for the archive, when it is not
+known. If not specified, then either the encoding given by the
+\-encoding option or the auto-detected encoding is used.
+.TP
+.BR \-i ", " \-indexes
+Instead of specifying the files to list as filenames or wildcard
+patterns, specify them as indexes, as output by lsar.
+.TP
+.BR \-nr ", " \-no\-recursion
+Do not attempt to extract archives contained in other archives. For
+instance, when unpacking a .tar.gz file, only unpack the .tar file and
+not its contents.
+.TP
+.BR \-t ", " \-copy\-time
+Copy the file modification time from the archive file to the
+containing directory, if one is created.
+.TP
+.BR \-k ", " "\-forks visible" | hidden | skip
+How to handle Mac OS resource forks. \fBvisible\fR creates
+AppleDouble files with the extension ".rsrc", \fBhidden\fR creates
+AppleDouble files with the prefix "._", and \fBskip\fR discards all
+resource forks. Defaults to \fBvisible\fR.
+.TP
+.BR \-q ", " \-quiet
+Run in quiet mode.
+.TP
+.BR \-v ", " \-version
+Print version and exit.
+.TP
+.BR \-h ", " \-help
+Display help information.
+.SH SEE ALSO
+.BR lsar (1)
diff --git a/system/unar/Extra/unar.bash_completion b/system/unar/Extra/unar.bash_completion
new file mode 100644
index 0000000000..06fe66f567
--- /dev/null
+++ b/system/unar/Extra/unar.bash_completion
@@ -0,0 +1,23 @@
+__unar()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="--output-directory --force-overwrite --force-rename --force-skip \
+ --force-directory --no-directory --password --encoding \
+ --password-encoding --indexes --no-recursion --copy-time \
+ --no-quarantine --forks --quiet --help --version"
+ if [[ ${prev} == "--forks" ]] ; then
+ local forksopts
+ forksopts="fork visible hidden skip"
+ COMPREPLY=( $(compgen -W "${forksopts}" -- ${cur}) )
+ return 0
+ elif [[ ${cur} == -* ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+}
+
+complete -o bashdefault -A file -F __unar unar
+