(long_opts): Add --dereference, -L.
authorJim Meyering <jim@meyering.net>
Sun, 20 Aug 2000 20:48:57 +0000 (20:48 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 20 Aug 2000 20:48:57 +0000 (20:48 +0000)
commitc93a607f058662ed2ab1984a381e07a85ddef2c9
treeddf30323d655635c41fe1b900fde853be5c165b2
parent7b1d35af9059096b0e1a1ae3c74fbd23a0b17882
(long_opts): Add --dereference, -L.
(usage): Describe -L and -H.
(cp_option_init): Initialize to DEREF_UNDEFINED, not `1'.
(main): Add `H' and `-L' to getopt spec string.
[case 'a']: Initialize `dereference' to DEREF_NEVER, not 0.
[case 'd']: Likewise.
[case 'H']: New case.
[case 'L']: New case.
[case 'R']: Don't set dereference to `0' here.
If it's not yet defined, set x.dereference to DEREF_NEVER
if -R was specified, else set it to DEREF_ALWAYS.
Set x.xstat accordingly for -H.
src/cp.c