aboutsummaryrefslogtreecommitdiff
path: root/usage.c
diff options
context:
space:
mode:
Diffstat (limited to 'usage.c')
-rw-r--r--usage.c71
1 files changed, 54 insertions, 17 deletions
diff --git a/usage.c b/usage.c
index 05913f3e3..b23f27141 100644
--- a/usage.c
+++ b/usage.c
@@ -566,33 +566,52 @@ const char logname_usage[] =
566 566
567#if defined BB_LS 567#if defined BB_LS
568const char ls_usage[] = 568const char ls_usage[] =
569 "ls [-1a" 569 "ls [-1Aa"
570#ifdef BB_FEATURE_LS_TIMESTAMPS 570#ifdef BB_FEATURE_LS_TIMESTAMPS
571 "c" 571 "c"
572#endif 572#endif
573 "d" 573 "Cd"
574#ifdef BB_FEATURE_LS_TIMESTAMPS 574#ifdef BB_FEATURE_LS_TIMESTAMPS
575 "e" 575 "e"
576#endif 576#endif
577 "ln"
578#ifdef BB_FEATURE_LS_FILETYPES 577#ifdef BB_FEATURE_LS_FILETYPES
579 "p" 578 "F"
580#endif
581#ifdef BB_FEATURE_LS_TIMESTAMPS
582 "u"
583#endif 579#endif
584 "xAC" 580 "iln"
585#ifdef BB_FEATURE_LS_FILETYPES 581#ifdef BB_FEATURE_LS_FILETYPES
586 "F" 582 "p"
587#endif 583#endif
588#ifdef BB_FEATURE_LS_RECURSIVE 584#ifdef BB_FEATURE_LS_RECURSIVE
589 "R" 585 "R"
590#endif 586#endif
587#ifdef BB_FEATURE_LS_SORTFILES
588 "rS"
589#endif
590 "s"
591#ifdef BB_FEATURE_AUTOWIDTH
592 "T"
593#endif
594#ifdef BB_FEATURE_LS_TIMESTAMPS
595 "tu"
596#endif
597#ifdef BB_FEATURE_LS_SORTFILES
598 "v"
599#endif
600#ifdef BB_FEATURE_AUTOWIDTH
601 "w"
602#endif
603 "x"
604#ifdef BB_FEATURE_LS_SORTFILES
605 "X"
606#endif
591 "] [filenames...]\n" 607 "] [filenames...]\n"
592#ifndef BB_FEATURE_TRIVIAL_HELP 608#ifndef BB_FEATURE_TRIVIAL_HELP
593 "\nList directory contents\n\n" 609 "\nList directory contents\n\n"
594 "Options:\n" 610 "Options:\n"
611 "\t-1\tlist files in a single column\n"
612 "\t-A\tdo not list implied . and ..\n"
595 "\t-a\tdo not hide entries starting with .\n" 613 "\t-a\tdo not hide entries starting with .\n"
614 "\t-C\tlist entries by columns\n"
596#ifdef BB_FEATURE_LS_TIMESTAMPS 615#ifdef BB_FEATURE_LS_TIMESTAMPS
597 "\t-c\twith -l: show ctime (the time of last\n" 616 "\t-c\twith -l: show ctime (the time of last\n"
598 "\t\tmodification of file status information)\n" 617 "\t\tmodification of file status information)\n"
@@ -601,27 +620,45 @@ const char ls_usage[] =
601#ifdef BB_FEATURE_LS_TIMESTAMPS 620#ifdef BB_FEATURE_LS_TIMESTAMPS
602 "\t-e\tlist both full date and full time\n" 621 "\t-e\tlist both full date and full time\n"
603#endif 622#endif
623#ifdef BB_FEATURE_LS_FILETYPES
624 "\t-F\tappend indicator (one of */=@|) to entries\n"
625#endif
626 "\t-i\tlist the i-node for each file\n"
604 "\t-l\tuse a long listing format\n" 627 "\t-l\tuse a long listing format\n"
605 "\t-n\tlist numeric UIDs and GIDs instead of names\n" 628 "\t-n\tlist numeric UIDs and GIDs instead of names\n"
606#ifdef BB_FEATURE_LS_FILETYPES 629#ifdef BB_FEATURE_LS_FILETYPES
607 "\t-p\tappend indicator (one of /=@|) to entries\n" 630 "\t-p\tappend indicator (one of /=@|) to entries\n"
608#endif 631#endif
632#ifdef BB_FEATURE_LS_RECURSIVE
633 "\t-R\tlist subdirectories recursively\n"
634#endif
635#ifdef BB_FEATURE_LS_SORTFILES
636 "\t-r\tsort the listing in reverse order\n"
637 "\t-S\tsort the listing by file size\n"
638#endif
639 "\t-s\tlist the size of each file, in blocks\n"
640#ifdef BB_FEATURE_AUTOWIDTH
641 "\t-T NUM\tassume Tabstop every NUM columns\n"
642#endif
609#ifdef BB_FEATURE_LS_TIMESTAMPS 643#ifdef BB_FEATURE_LS_TIMESTAMPS
644 "\t-t\twith -l: show modification time (the time of last\n"
645 "\t\tchange of the file)\n"
610 "\t-u\twith -l: show access time (the time of last\n" 646 "\t-u\twith -l: show access time (the time of last\n"
611 "\t\taccess of the file)\n" 647 "\t\taccess of the file)\n"
612#endif 648#endif
613 "\t-x\tlist entries by lines instead of by columns\n" 649#ifdef BB_FEATURE_LS_SORTFILES
614 "\t-A\tdo not list implied . and ..\n" 650 "\t-v\tsort the listing by version\n"
615 "\t-C\tlist entries by columns\n"
616#ifdef BB_FEATURE_LS_FILETYPES
617 "\t-F\tappend indicator (one of */=@|) to entries\n"
618#endif 651#endif
619#ifdef BB_FEATURE_LS_RECURSIVE 652#ifdef BB_FEATURE_AUTOWIDTH
620 "\t-R\tlist subdirectories recursively\n" 653 "\t-w NUM\tassume the terminal is NUM columns wide\n"
621#endif 654#endif
655 "\t-x\tlist entries by lines instead of by columns\n"
656#ifdef BB_FEATURE_LS_SORTFILES
657 "\t-X\tsort the listing by extension\n"
622#endif 658#endif
659#endif /* BB_FEATURE_TRIVIAL_HELP */
623 ; 660 ;
624#endif 661#endif /* BB_LS */
625 662
626#if defined BB_LSMOD 663#if defined BB_LSMOD
627const char lsmod_usage[] = 664const char lsmod_usage[] =