### Usage
-Start nnn (default: current directory):
+Start nnn (default dir: current directory):
- $ nnn [-d] [-v] [path_to_dir]
+ $ nnn [-d] [-S] [-v] [dir]
- -d: open in detail view mode
+ -d: start in detail view mode
+ -S: start in disk usage analyzer mode
-v: show version and exit
`>` indicates the currently selected entry in nnn.
supports the following options:
.Pp
.Fl d
- open in detail view mode
+ start in detail view mode
+.Pp
+.Fl S
+ start in disk usage analyzer mode
.Pp
.Fl v
show version and exit
static void
usage(void)
{
- fprintf(stderr, "usage: nnn [-d] [-v] [dir]\n");
+ fprintf(stderr, "usage: nnn [-d] [-S] [-v] [dir]\n");
exit(1);
}
if (argc > 3)
usage();
- while ((opt = getopt(argc, argv, "dv")) != -1) {
+ while ((opt = getopt(argc, argv, "dSv")) != -1) {
switch (opt) {
+ case 'S':
+ bsizeorder = 1;
case 'd':
/* Open in detail mode, if set */
showdetail = 1;