diff options
author | Antoni Villalonga <antoni@friki.cat> | 2020-08-12 19:27:41 +0200 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-08-18 04:15:35 -0500 |
commit | f486337d9fc5f5f1cc9435de3233a7073067e3e1 (patch) | |
tree | c082da530df3b92d2ce77269e5dde836a68ce19c /toys/posix | |
parent | 42303209f44a335025b9cd1dbe5dd2f3069f2e99 (diff) | |
download | toybox-f486337d9fc5f5f1cc9435de3233a7073067e3e1.tar.gz |
Add missing longopts alias for chgrp/chown and rmdir
Heavily used long params under some contexts for already implemented
options:
chgrp/chown:
Add alias '--no-dereference' for '-h'
rmdir:
Add alias '--parents' for '-p'
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/chgrp.c | 2 | ||||
-rw-r--r-- | toys/posix/rmdir.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/chgrp.c b/toys/posix/chgrp.c index 20a2e0e7..1e56d973 100644 --- a/toys/posix/chgrp.c +++ b/toys/posix/chgrp.c @@ -5,7 +5,7 @@ * See http://opengroup.org/onlinepubs/9699919799/utilities/chown.html * See http://opengroup.org/onlinepubs/9699919799/utilities/chgrp.html -USE_CHGRP(NEWTOY(chgrp, "<2hPLHRfv[-HLP]", TOYFLAG_BIN)) +USE_CHGRP(NEWTOY(chgrp, "<2h(no-dereference)PLHRfv[-HLP]", TOYFLAG_BIN)) USE_CHOWN(OLDTOY(chown, chgrp, TOYFLAG_BIN)) config CHGRP diff --git a/toys/posix/rmdir.c b/toys/posix/rmdir.c index 3bece15f..c25fd839 100644 --- a/toys/posix/rmdir.c +++ b/toys/posix/rmdir.c @@ -4,7 +4,7 @@ * * See http://opengroup.org/onlinepubs/9699919799/utilities/rmdir.html -USE_RMDIR(NEWTOY(rmdir, "<1(ignore-fail-on-non-empty)p", TOYFLAG_BIN)) +USE_RMDIR(NEWTOY(rmdir, "<1(ignore-fail-on-non-empty)p(parents)", TOYFLAG_BIN)) config RMDIR bool "rmdir" |