diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-16 13:17:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-16 13:17:13 +0000 |
commit | 069e347863fa46f684ab6bd7e48cefd8fa74b629 (patch) | |
tree | b2f2cb51963b95d56db7ff52ab3a65d5210f3cda /include | |
parent | cd5c61cd3b9bcca6afd30d6117d2d2e1791a7375 (diff) | |
download | busybox-w32-069e347863fa46f684ab6bd7e48cefd8fa74b629.tar.gz busybox-w32-069e347863fa46f684ab6bd7e48cefd8fa74b629.tar.bz2 busybox-w32-069e347863fa46f684ab6bd7e48cefd8fa74b629.zip |
crontab: almost complete rewrite
crontab: make options consistent with other implementations
text data bss dec hex filename
2042 4 0 2046 7fe busybox.t1/miscutils/crontab.o
1331 0 0 1331 533 busybox.t2/miscutils/crontab.o
function old new delta
edit_file 733 956 +223
open_as_user - 171 +171
packed_usage 23652 23650 -2
CDir 8 4 -4
ChangeUser 139 - -139
crontab_main 1522 616 -906
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/3 up/down: 394/-1051) Total: -657 bytes
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/usage.h b/include/usage.h index 71e1d125f..59e57f3a0 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -510,15 +510,14 @@ USE_FEATURE_BRCTL_FANCY("\n" \ | |||
510 | " -c dir Working dir" | 510 | " -c dir Working dir" |
511 | 511 | ||
512 | #define crontab_trivial_usage \ | 512 | #define crontab_trivial_usage \ |
513 | "[-c dir] {file|-}|[-u|-l|-e|-d user]" | 513 | "[-c DIR] [-u USER] [-ler]|[FILE]" |
514 | #define crontab_full_usage \ | 514 | #define crontab_full_usage \ |
515 | " file [opts] Replace crontab from file\n" \ | 515 | " -c Crontab directory" \ |
516 | " - [opts] Replace crontab from stdin\n" \ | 516 | "\n -u User" \ |
517 | " -u user User\n" \ | 517 | "\n -l List crontab" \ |
518 | " -l [user] List crontab for user\n" \ | 518 | "\n -e Edit crontab" \ |
519 | " -e [user] Edit crontab for user\n" \ | 519 | "\n -r Delete crontab" \ |
520 | " -d [user] Delete crontab for user\n" \ | 520 | "\n FILE Replace crontab by FILE ('-': stdin)" \ |
521 | " -c dir Crontab directory" | ||
522 | 521 | ||
523 | #define cryptpw_trivial_usage \ | 522 | #define cryptpw_trivial_usage \ |
524 | "[-a des|md5] [string]" | 523 | "[-a des|md5] [string]" |