This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Here is the --help, --version patch for passwd. I used the idea from a recent cygpath patch to separate usage output into sections, though I feel I've improved on it a bit. :) Corinna, you might want to take a look at these longopt names I chose to make sure they're OK: Usage: passwd (-l|-u|-S) [USER] passwd [-i NUM] [-n MINDAYS] [-x MAXDAYS] [-L LEN] User operations: -l, --lock lock USER's account -u, --unlock unlock USER's account -S, --status display password status for USER (locked, expired, etc.) System operations: -i, --inactive set NUM of days before inactive accounts are disabled (inactive accounts are those with expired passwords) -n, --minage set system minimum password age to MINDAYS -x, --maxage set system maximum password age to MAXDAYS -L, --length set system minimum password length to LEN 2002-05-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> * passwd.c (prog_name): New global variable. (longopts): Ditto. (opts): Ditto. (usage): Standardize output. Accomodate new options. (print_version): New function. (main): Accomodate longopts and new --help, --version options.
Attachment:
passwd.c-patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |