diff options
Diffstat (limited to 'usage.c')
-rw-r--r-- | usage.c | 42 |
1 files changed, 39 insertions, 3 deletions
@@ -190,9 +190,22 @@ const char deallocvt_usage[] = | |||
190 | 190 | ||
191 | #if defined BB_DF | 191 | #if defined BB_DF |
192 | const char df_usage[] = | 192 | const char df_usage[] = |
193 | "df [filesystem ...]" | 193 | "df [-?" |
194 | #ifdef BB_FEATURE_HUMAN_READABLE | ||
195 | "hm" | ||
196 | #endif | ||
197 | "k] [filesystem ...]\n" | ||
194 | #ifndef BB_FEATURE_TRIVIAL_HELP | 198 | #ifndef BB_FEATURE_TRIVIAL_HELP |
195 | "\n\nPrint the filesystem space used and space available." | 199 | "\n\nPrint the filesystem space used and space available." |
200 | "Options:\n" | ||
201 | "\t-?\tshow usage information\n" | ||
202 | #ifdef BB_FEATURE_HUMAN_READABLE | ||
203 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" | ||
204 | "\t-m\tprint sizes in megabytes\n" | ||
205 | "\t-k\tprint sizes in kilobytes(default)\n" | ||
206 | #else | ||
207 | "\t-k\tprint sizes in kilobytes(compatability)\n" | ||
208 | #endif | ||
196 | #endif | 209 | #endif |
197 | ; | 210 | ; |
198 | #endif | 211 | #endif |
@@ -244,13 +257,25 @@ const char dpkg_deb_usage[] = | |||
244 | 257 | ||
245 | #if defined BB_DU | 258 | #if defined BB_DU |
246 | const char du_usage[] = | 259 | const char du_usage[] = |
247 | "du [OPTION]... [FILE]..." | 260 | "du [-?ls" |
261 | #ifdef BB_FEATURE_HUMAN_READABLE | ||
262 | "hm" | ||
263 | #endif | ||
264 | "k] [FILE]...\n" | ||
248 | #ifndef BB_FEATURE_TRIVIAL_HELP | 265 | #ifndef BB_FEATURE_TRIVIAL_HELP |
249 | "\n\nSummarizes disk space used for each FILE and/or directory.\n" | 266 | "\n\nSummarizes disk space used for each FILE and/or directory.\n" |
250 | "Disk space is printed in units of 1024 bytes.\n\n" | 267 | "Disk space is printed in units of 1024 bytes.\n\n" |
251 | "Options:\n" | 268 | "Options:\n" |
269 | "\t-?\tshow usage information\n" | ||
252 | "\t-l\tcount sizes many times if hard linked\n" | 270 | "\t-l\tcount sizes many times if hard linked\n" |
253 | "\t-s\tdisplay only a total for each argument" | 271 | "\t-s\tdisplay only a total for each argument" |
272 | #ifdef BB_FEATURE_HUMAN_READABLE | ||
273 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" | ||
274 | "\t-m\tprint sizes in megabytes\n" | ||
275 | "\t-k\tprint sizes in kilobytes(default)\n" | ||
276 | #else | ||
277 | "\t-k\tprint sizes in kilobytes(compatability)\n" | ||
278 | #endif | ||
254 | #endif | 279 | #endif |
255 | ; | 280 | ; |
256 | #endif | 281 | #endif |
@@ -661,7 +686,10 @@ const char ls_usage[] = | |||
661 | #ifdef BB_FEATURE_LS_SORTFILES | 686 | #ifdef BB_FEATURE_LS_SORTFILES |
662 | "X" | 687 | "X" |
663 | #endif | 688 | #endif |
664 | "] [filenames...]" | 689 | #ifdef BB_FEATURE_HUMAN_READABLE |
690 | "h" | ||
691 | #endif | ||
692 | "k] [filenames...]\n" | ||
665 | #ifndef BB_FEATURE_TRIVIAL_HELP | 693 | #ifndef BB_FEATURE_TRIVIAL_HELP |
666 | "\n\nList directory contents\n\n" | 694 | "\n\nList directory contents\n\n" |
667 | "Options:\n" | 695 | "Options:\n" |
@@ -716,6 +744,14 @@ const char ls_usage[] = | |||
716 | #ifdef BB_FEATURE_LS_SORTFILES | 744 | #ifdef BB_FEATURE_LS_SORTFILES |
717 | "\t-X\tsort the listing by extension\n" | 745 | "\t-X\tsort the listing by extension\n" |
718 | #endif | 746 | #endif |
747 | |||
748 | #ifdef BB_FEATURE_HUMAN_READABLE | ||
749 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" | ||
750 | "\t-k\tprint sizes in kilobytes(default)\n" | ||
751 | #else | ||
752 | "\t-k\tprint sizes in kilobytes(compatability)" | ||
753 | #endif | ||
754 | |||
719 | #endif /* BB_FEATURE_TRIVIAL_HELP */ | 755 | #endif /* BB_FEATURE_TRIVIAL_HELP */ |
720 | ; | 756 | ; |
721 | #endif /* BB_LS */ | 757 | #endif /* BB_LS */ |