1. Proper formating of the man page.

2. Corrected the documentation about the possibility to omit the timestamp.
This commit is contained in:
heinzel
2008-02-19 16:48:06 +00:00
parent c1aa247e85
commit 277ef6c1cf
2 changed files with 32 additions and 13 deletions

View File

@@ -120,9 +120,10 @@ int print_help( void ) {
printf("%s converts a unix timestamp into a human readable date.\n",
progname);
printf("\n");
printf("Usage: unixtime [-h, --help] [-V, --version] <TIMESTAMP>\n");
printf("Usage: unixtime [<timestamp>]\n"
" [-h, --help] [-V, --version]\n");
printf("\n");
printf("Where <TIMESTAMP> is the number of seconds since the Epoch\n");
printf("Where <timestamp> is the number of seconds since the Epoch\n");
if((p = strdup(ctime(& t))) != NULL) {
/* ctime() return the date as string with an appended new line.
* Since we do not want the new line to be printed, we terminate