`ls`: update help message.

added example usage, --width docs, and cwd note.
master
Drake 3 years ago
parent 9b124c9cfb
commit 4a2bc64ca5

@ -72,7 +72,12 @@ int main(int argc, char **argv) {
" --color: colour the output depending on whether there is "
"a file or folder\n"
" --colour: same as --color, but for our Bri'ish folks\n"
" -C, --columns: print every entry on a seperate line";
" -C, --columns: print every entry on a seperate line\n"
" --width=LEN: limit maximum line length to LEN\n"
"Usage:\n"
" ls [options] DIRECTORY\n"
"Notes:\n"
" If DIRECTORY is not specified, then the CWD is used.";
printf("%s\n", help);
return 0;
} else if (!strcmp(arg, "--version")) {

Loading…
Cancel
Save