mirror of git://git.sv.gnu.org/nano.git
options: stop recognizing and ignoring -b, -e, -f, -j, and -q
This signals our break from trying to be as compatible with Pico as possible. We were already incompatible with modern Pico in the -n and -W options, and in several character-set and color options, so ignoring those five options brought us very little. Anyway, soon some of those options will be reused and will have the effect of making nano look and behave more like Pico.
This commit is contained in:
parent
38e3318e5f
commit
98b1f8f059
|
@ -271,9 +271,6 @@ continuing it over multiple screen lines. Since
|
|||
\&'$' normally refers to a variable in the Unix shell, you should specify
|
||||
this option last when using other options (e.g.\& 'nano \-wS$') or pass it
|
||||
separately (e.g.\& 'nano \-wS \-$').
|
||||
.TP
|
||||
.BR \-b ", " \-e ", " \-f ", " \-j ", " \-q
|
||||
Ignored, for compatibility with Pico.
|
||||
|
||||
.SH TOGGLES
|
||||
Several of the above options can be switched on and off also while
|
||||
|
|
|
@ -417,13 +417,6 @@ continuing it over multiple screen lines. Since
|
|||
this option last when using other options (e.g.@: @code{nano -wS$}) or pass it
|
||||
separately (e.g.@: @code{nano -wS -$}).
|
||||
|
||||
@item -b
|
||||
@itemx -e
|
||||
@itemx -f
|
||||
@itemx -j
|
||||
@itemx -q
|
||||
Ignored, for compatibility with Pico.
|
||||
|
||||
@end table
|
||||
|
||||
|
||||
|
|
|
@ -2084,7 +2084,7 @@ int main(int argc, char **argv)
|
|||
|
||||
while ((optchr =
|
||||
getopt_long(argc, argv,
|
||||
"ABC:DEFGHIKLMNOPQ:RST:UVWX:Y:Zabcdefghijklmno:pqr:s:tuvwxyz$",
|
||||
"ABC:DEFGHIKLMNOPQ:RST:UVWX:Y:Zacdghiklmno:pr:s:tuvwxyz$",
|
||||
long_options, NULL)) != -1) {
|
||||
switch (optchr) {
|
||||
#ifndef NANO_TINY
|
||||
|
@ -2293,12 +2293,6 @@ int main(int argc, char **argv)
|
|||
SET(SOFTWRAP);
|
||||
break;
|
||||
#endif
|
||||
case 'b': /* Pico compatibility flags. */
|
||||
case 'e':
|
||||
case 'f':
|
||||
case 'j':
|
||||
case 'q':
|
||||
break;
|
||||
default:
|
||||
printf(_("Type '%s -h' for a list of available options.\n"), argv[0]);
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in New Issue