aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-09-09 01:10:21 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-09-09 01:10:21 +0530
commit321a618192bf8da808757dcc8d9d700b6b096b88 (patch)
treeae101f4e95517858d16eaac1dc71bfdaa38f23a7 /nnn.c
parentdd240bfc349790dbe1bf24391557b1388071cc78 (diff)
downloadnnn-321a618192bf8da808757dcc8d9d700b6b096b88.tar.gz
Add general info in help
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/nnn.c b/nnn.c
index 62239f0..15c5164 100644
--- a/nnn.c
+++ b/nnn.c
@@ -133,6 +133,7 @@ disabledbg()
/* Macro definitions */
#define VERSION "1.4"
+#define GENERAL_INFO "License: BSD 2-Clause\nWebpage: https://github.com/jarun/nnn"
#define LEN(x) (sizeof(x) / sizeof(*(x)))
#undef MIN
#define MIN(x, y) ((x) < (y) ? (x) : (y))
@@ -1714,7 +1715,7 @@ show_help(char *path)
dprintf(fd, "\nVolume: %s of ", coolsize(get_fs_free(path)));
dprintf(fd, "%s free\n", coolsize(get_fs_capacity(path)));
- dprintf(fd, "\n");
+ dprintf(fd, "\nVersion: %s\n%s\n", VERSION, GENERAL_INFO);
close(fd);
exitcurses();
@@ -2695,9 +2696,7 @@ optional arguments:\n\
-S start in disk usage analyzer mode\n\
-v show program version and exit\n\
-h show this help and exit\n\n\
-Version: %s\n\
-License: BSD 2-Clause\n\
-Webpage: https://github.com/jarun/nnn\n", VERSION);
+Version: %s\n%s\n", VERSION, GENERAL_INFO);
exit(0);
}