Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync man page and usage output. #176

Merged
merged 2 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions man/unshield.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.TH UNSHIELD "1" "July 2004" "The SynCE project" "http://www.synce.org"
.TH UNSHIELD "1" "November 2023" "The Unshield project" "https://github.com/twogood/unshield"
.SH NAME
unshield \- extract CAB files from an InstallShield installer archive
.SH SYNOPSIS
unshield [\-c COMPONENT] [\-d DIRECTORY] [\-D LEVEL] [\-g GROUP] [\-h] [\-i VERSION] [\-j] [\-L] [\-n] [\-o] [\-O] [\-r] [\-v] [\-V] c|g|l|t|x CABFILE
unshield [\-c COMPONENT] [\-d DIRECTORY] [\-D LEVEL] [\-g GROUP] [\-h] [\-i VERSION] [\-e ENCODING] [\-j] [\-L] [\-O] [\-r] [\-R] [\-V] c|g|l|t|x CABFILE [FILENAME...]
.SH DESCRIPTION
Unshield extracts CAB files from InstallShield installers, used to
install software on Microsoft Windows based machines.
Expand All @@ -28,35 +28,29 @@ Only list/extract this file group
Show help message
.TP
\fB\-i\fR VERSION
Force InstallShield version number (don't autodetect)\n
Force InstallShield version number (don't autodetect)
.br
Use this option if you have a very old archive (generated with InstallShield <= 4) and / or the automatic detection fails
.TP
\fB\-e\fR ENCODING
Convert filename character encoding to local codepage from ENCODING (implicitly sets -R)
.TP
\fB\-j\fR
Junk paths (do not make directories)
.TP
\fB\-L\fR
Make file and directory names lowercase
.TP
\fB\-n\fR
Never overwrite files
.TP
\fB\-o\fR
Always overwrite files
.TP
\fB\-O\fR
Use old compression
.TP
\fB\-r\fR
Save raw data (do not decompress)
.TP
\fB\-R\fR
Don't do any conversion to file and directory names when extracting.
Don't do any conversion to file and directory names when extracting
.TP
\fB\-v\fR
Be verbose
.TP
\fB\-V\fR
\fB\-V\fR, \fB\-\-version\fR
Print version information
.SS "Commands:"
.TP
Expand All @@ -74,10 +68,13 @@ Test files
.TP
x
Extract files
.SS "Other:"
.SS Other:
.TP
CABFILE
The InstallShield installer file to act upon
.SH "AUTHOR"
The file to list or extract contents of
.TP
FILENAME
Optionally specify names of specific files to extract (wildcards are supported)
.SH AUTHOR
This manual page was adapted by Mark Ellis <[email protected]>, from
the skeleton generated by help2man
6 changes: 3 additions & 3 deletions src/unshield.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static void show_usage(const char* name)
fprintf(stderr,
"Syntax:\n"
"\n"
"\t%s [-c COMPONENT] [-d DIRECTORY] [-D LEVEL] [-g GROUP] [-i VERSION] [-e ENCODING] [-GhlOrV] c|g|l|t|x CABFILE [FILENAME...]\n"
"\t%s [-c COMPONENT] [-d DIRECTORY] [-D LEVEL] [-g GROUP] [-h] [-i VERSION] [-e ENCODING] [-j] [-L] [-O] [-r] [-R] [-V] c|g|l|t|x CABFILE [FILENAME...]\n"
"\n"
"Options:\n"
"\t-c COMPONENT Only list/extract this component\n"
Expand All @@ -190,7 +190,7 @@ static void show_usage(const char* name)
"\t-L Make file and directory names lowercase\n"
"\t-O Use old compression\n"
"\t-r Save raw data (do not decompress)\n"
"\t-R Don't do any conversion to file and directory names when extracting.\n"
"\t-R Don't do any conversion to file and directory names when extracting\n"
"\t-V --version Print copyright and version information\n"
"\n"
"Commands:\n"
Expand Down Expand Up @@ -278,7 +278,7 @@ static bool handle_parameters(
break;

case 'V':
printf("Unshield version " VERSION ". MIT License. (C) 2003-2022 David Eriksson.\n");
printf("Unshield version " VERSION ". MIT License. (C) 2003-2023 David Eriksson.\n");
exit(0);
break;

Expand Down