]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(long_opts): Change the name of each undocumented, for-
authorJim Meyering <jim@meyering.net>
Sat, 3 Dec 2005 22:23:09 +0000 (22:23 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 3 Dec 2005 22:23:09 +0000 (22:23 +0000)
testing-only option to start with `-', so that it cannot render
ambiguous any prefix it happens to share with some other option name.

src/rm.c

index 4b199997022a438ae62728e72360dd2c101857e2..2fdaa92af57c8e41e2f9eae5883bbbd0928773f7 100644 (file)
--- 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'},