aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-30 15:36:31 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-30 15:36:31 -0400
commitfbca72ec9b3057d0d1ef35ecb1fd75e114774c2a (patch)
tree29878c1365726519546a7137cbbd49c8428828b8
parent019032876e0421dd96d283eb8425f0c1e45ed2b9 (diff)
downloadbw-atari8-tools-fbca72ec9b3057d0d1ef35ecb1fd75e114774c2a.tar.gz
unprotbas: tweak doc.
-rw-r--r--unprotbas.13
-rw-r--r--unprotbas.c5
-rw-r--r--unprotbas.rst3
3 files changed, 5 insertions, 6 deletions
diff --git a/unprotbas.1 b/unprotbas.1
index c103ed5..2137f42 100644
--- a/unprotbas.1
+++ b/unprotbas.1
@@ -71,7 +71,8 @@ Print usage message and exit.
Print version number and exit.
.TP
.B \fB\-v\fP
-Verbose operation.
+Verbose operation. When displaying a number in verbose mode, it will
+be prefixed with \fI$\fP if it\(aqs in hex, or no prefix for decimal.
.UNINDENT
.SS Unprotection Options
.INDENT 0.0
diff --git a/unprotbas.c b/unprotbas.c
index e7a7df8..7dc183a 100644
--- a/unprotbas.c
+++ b/unprotbas.c
@@ -881,10 +881,7 @@ int main(int argc, char **argv) {
}
if(verbose) {
- if(was_protected)
- fprintf(stderr, "Program was protected.\n");
- else
- fprintf(stderr, "Program was NOT protected.\n");
+ fprintf(stderr, "Program was %sprotected.\n", (was_protected ? "" : "NOT "));
}
if(checkonly) {
diff --git a/unprotbas.rst b/unprotbas.rst
index 5722880..b31668e 100644
--- a/unprotbas.rst
+++ b/unprotbas.rst
@@ -54,7 +54,8 @@ General Options
Print version number and exit.
**-v**
- Verbose operation.
+ Verbose operation. When displaying a number in verbose mode, it will
+ be prefixed with *$* if it's in hex, or no prefix for decimal.
Unprotection Options
--------------------