summaryrefslogtreecommitdiff
path: root/ls.c
diff options
context:
space:
mode:
authorMatt Kraai2000-07-16 20:57:15 +0000
committerMatt Kraai2000-07-16 20:57:15 +0000
commitbf181b9338152759fd56c8009e9a962a84808e7c (patch)
treee8c416c791c690f661c513340662e4e98ff3464a /ls.c
parent3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (diff)
downloadbusybox-bf181b9338152759fd56c8009e9a962a84808e7c.zip
busybox-bf181b9338152759fd56c8009e9a962a84808e7c.tar.gz
Extract usage information into a separate file.
Diffstat (limited to 'ls.c')
-rw-r--r--ls.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/ls.c b/ls.c
index 0644cde..e56e3bc 100644
--- a/ls.c
+++ b/ls.c
@@ -427,63 +427,6 @@ static int list_item(const char *name)
return 1;
}
-static const char ls_usage[] = "ls [-1a"
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "c"
-#endif
- "d"
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "e"
-#endif
- "ln"
-#ifdef BB_FEATURE_LS_FILETYPES
- "p"
-#endif
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "u"
-#endif
- "xAC"
-#ifdef BB_FEATURE_LS_FILETYPES
- "F"
-#endif
-#ifdef BB_FEATURE_LS_RECURSIVE
- "R"
-#endif
- "] [filenames...]\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nList directory contents\n\n"
- "Options:\n"
- "\t-a\tdo not hide entries starting with .\n"
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "\t-c\twith -l: show ctime (the time of last\n"
- "\t\tmodification of file status information)\n"
-#endif
- "\t-d\tlist directory entries instead of contents\n"
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "\t-e\tlist both full date and full time\n"
-#endif
- "\t-l\tuse a long listing format\n"
- "\t-n\tlist numeric UIDs and GIDs instead of names\n"
-#ifdef BB_FEATURE_LS_FILETYPES
- "\t-p\tappend indicator (one of /=@|) to entries\n"
-#endif
-#ifdef BB_FEATURE_LS_TIMESTAMPS
- "\t-u\twith -l: show access time (the time of last\n"
- "\t\taccess of the file)\n"
-#endif
- "\t-x\tlist entries by lines instead of by columns\n"
- "\t-A\tdo not list implied . and ..\n"
- "\t-C\tlist entries by columns\n"
-#ifdef BB_FEATURE_LS_FILETYPES
- "\t-F\tappend indicator (one of */=@|) to entries\n"
-#endif
-#ifdef BB_FEATURE_LS_RECURSIVE
- "\t-R\tlist subdirectories recursively\n"
-#endif
-#endif
- ;
-
-
#ifdef BB_FEATURE_LS_RECURSIVE
static int dirAction(const char *fileName, struct stat *statbuf, void* junk)
{