From f486337d9fc5f5f1cc9435de3233a7073067e3e1 Mon Sep 17 00:00:00 2001 From: Antoni Villalonga Date: Wed, 12 Aug 2020 19:27:41 +0200 Subject: 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' --- toys/posix/chgrp.c | 2 +- toys/posix/rmdir.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/posix') 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" -- cgit v1.2.3