Skip to content

Commit 7a73f94

Browse files
committed
Sync man page and usage output.
Signed-off-by: Steffen Pankratz <kratz00@gmx.de>
1 parent 67bca73 commit 7a73f94

2 files changed

Lines changed: 17 additions & 20 deletions

File tree

‎man/unshield.1‎

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.TH UNSHIELD "1" "July 2004" "The SynCE project" "http://www.synce.org"
1+
.TH UNSHIELD "1" "November 2023" "The Unshield project" "https://github.com/twogood/unshield"
22
.SH NAME
33
unshield \- extract CAB files from an InstallShield installer archive
44
.SH SYNOPSIS
5-
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
5+
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...]
66
.SH DESCRIPTION
77
Unshield extracts CAB files from InstallShield installers, used to
88
install software on Microsoft Windows based machines.
@@ -28,35 +28,29 @@ Only list/extract this file group
2828
Show help message
2929
.TP
3030
\fB\-i\fR VERSION
31-
Force InstallShield version number (don't autodetect)\n
31+
Force InstallShield version number (don't autodetect)
3232
.br
3333
Use this option if you have a very old archive (generated with InstallShield <= 4) and / or the automatic detection fails
3434
.TP
35+
\fB\-e\fR ENCODING
36+
Convert filename character encoding to local codepage from ENCODING (implicitly sets -R)
37+
.TP
3538
\fB\-j\fR
3639
Junk paths (do not make directories)
3740
.TP
3841
\fB\-L\fR
3942
Make file and directory names lowercase
4043
.TP
41-
\fB\-n\fR
42-
Never overwrite files
43-
.TP
44-
\fB\-o\fR
45-
Always overwrite files
46-
.TP
4744
\fB\-O\fR
4845
Use old compression
4946
.TP
5047
\fB\-r\fR
5148
Save raw data (do not decompress)
5249
.TP
5350
\fB\-R\fR
54-
Don't do any conversion to file and directory names when extracting.
51+
Don't do any conversion to file and directory names when extracting
5552
.TP
56-
\fB\-v\fR
57-
Be verbose
58-
.TP
59-
\fB\-V\fR
53+
\fB\-V\fR, \fB\-\-version\fR
6054
Print version information
6155
.SS "Commands:"
6256
.TP
@@ -74,10 +68,13 @@ Test files
7468
.TP
7569
x
7670
Extract files
77-
.SS "Other:"
71+
.SS Other:
7872
.TP
7973
CABFILE
80-
The InstallShield installer file to act upon
81-
.SH "AUTHOR"
74+
The file to list or extract contents of
75+
.TP
76+
FILENAME
77+
Optionally specify names of specific files to extract (wildcards are supported)
78+
.SH AUTHOR
8279
This manual page was adapted by Mark Ellis <mark@mpellis.org.uk>, from
8380
the skeleton generated by help2man

‎src/unshield.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static void show_usage(const char* name)
172172
fprintf(stderr,
173173
"Syntax:\n"
174174
"\n"
175-
"\t%s [-c COMPONENT] [-d DIRECTORY] [-D LEVEL] [-g GROUP] [-i VERSION] [-e ENCODING] [-GhlOrV] c|g|l|t|x CABFILE [FILENAME...]\n"
175+
"\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"
176176
"\n"
177177
"Options:\n"
178178
"\t-c COMPONENT Only list/extract this component\n"
@@ -190,7 +190,7 @@ static void show_usage(const char* name)
190190
"\t-L Make file and directory names lowercase\n"
191191
"\t-O Use old compression\n"
192192
"\t-r Save raw data (do not decompress)\n"
193-
"\t-R Don't do any conversion to file and directory names when extracting.\n"
193+
"\t-R Don't do any conversion to file and directory names when extracting\n"
194194
"\t-V --version Print copyright and version information\n"
195195
"\n"
196196
"Commands:\n"
@@ -278,7 +278,7 @@ static bool handle_parameters(
278278
break;
279279

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

0 commit comments

Comments
 (0)