From: Jim Meyering Date: Sat, 3 Dec 2005 22:23:09 +0000 (+0000) Subject: (long_opts): Change the name of each undocumented, for- X-Git-Tag: v6.0~1220 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43233c319e3c8d829824cd16ad99b1acc47dde6d;p=thirdparty%2Fcoreutils.git (long_opts): Change the name of each undocumented, for- testing-only option to start with `-', so that it cannot render ambiguous any prefix it happens to share with some other option name. --- diff --git a/src/rm.c b/src/rm.c index 4b19999702..2fdaa92af5 100644 --- a/src/rm.c +++ b/src/rm.c @@ -88,7 +88,7 @@ static struct option const long_opts[] = /* It is relatively difficult to ensure that there is a tty on stdin. Since rm acts differently depending on that, without this option, it'd be harder to test the parts of rm that depend on that setting. */ - {"presume-input-tty", no_argument, NULL, PRESUME_INPUT_TTY_OPTION}, + {"-presume-input-tty", no_argument, NULL, PRESUME_INPUT_TTY_OPTION}, {"recursive", no_argument, NULL, 'r'}, {"verbose", no_argument, NULL, 'v'},