diff options
author | B. Watson <urchlay@slackware.uk> | 2024-12-13 07:03:08 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-12-13 07:03:08 -0500 |
commit | 049360816bd760d229463ed461b443b2a7d212fe (patch) | |
tree | e3583a6cf5ea32ac78255f8f0b71045d1b3d46db /uxd.c | |
parent | d77820c5a04d9bb930ee95df2fbc28bfca87ddfe (diff) | |
download | uxd-049360816bd760d229463ed461b443b2a7d212fe.tar.gz |
add version info, use MYCFLAGS for user flags
Diffstat (limited to 'uxd.c')
-rw-r--r-- | uxd.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -41,6 +41,10 @@ fe ff, it's UTF-16 big-endian. We detect these and print a warning on stderr. */ +#ifndef VERSION +#define VERSION "(unknown version)" +#endif + /* ANSI colors */ #define BLACK 0 /* don't use (could be the background color) */ #define RED 1 @@ -72,7 +76,8 @@ int dump_column = 0; int filepos = 0; void usage(void) { - printf("Usage: %s <file>\n", self); + printf("uxd (Utf-8 heX Dump) v"VERSION" by B. Watson. WTFPL.\n"); + printf("Usage: %s [<file>]\n", self); printf(" With no <file>, or with -, read standard input.\n"); exit(0); } |