1
1

help: in the tiny version, don't list an option that is the default

And don't recognize it either.
Этот коммит содержится в:
Benno Schulenberg 2019-03-10 19:17:52 +01:00
родитель 74752686f4
Коммит 4240423b9c

Просмотреть файл

@ -804,8 +804,10 @@ void usage(void)
#endif #endif
print_opt("-K", "--rawsequences", print_opt("-K", "--rawsequences",
N_("Fix numeric keypad key confusion problem")); N_("Fix numeric keypad key confusion problem"));
#ifndef NANO_TINY
print_opt("-L", "--nonewlines", print_opt("-L", "--nonewlines",
N_("Don't add an automatic newline [default]")); N_("Don't add an automatic newline [default]"));
#endif
#ifdef ENABLED_WRAPORJUSTIFY #ifdef ENABLED_WRAPORJUSTIFY
print_opt("-M", "--trimblanks", print_opt("-M", "--trimblanks",
N_("Trim tail spaces when hard-wrapping")); N_("Trim tail spaces when hard-wrapping"));
@ -1964,7 +1966,6 @@ int main(int argc, char **argv)
{"ignorercfiles", 0, NULL, 'I'}, {"ignorercfiles", 0, NULL, 'I'},
#endif #endif
{"rawsequences", 0, NULL, 'K'}, {"rawsequences", 0, NULL, 'K'},
{"nonewlines", 0, NULL, 'L'},
#ifdef ENABLED_WRAPORJUSTIFY #ifdef ENABLED_WRAPORJUSTIFY
{"trimblanks", 0, NULL, 'M'}, {"trimblanks", 0, NULL, 'M'},
#endif #endif
@ -2022,6 +2023,7 @@ int main(int argc, char **argv)
{"locking", 0, NULL, 'G'}, {"locking", 0, NULL, 'G'},
{"historylog", 0, NULL, 'H'}, {"historylog", 0, NULL, 'H'},
{"guidestripe", 1, NULL, 'J'}, {"guidestripe", 1, NULL, 'J'},
{"nonewlines", 0, NULL, 'L'},
{"noconvert", 0, NULL, 'N'}, {"noconvert", 0, NULL, 'N'},
{"morespace", 0, NULL, 'O'}, {"morespace", 0, NULL, 'O'},
{"positionlog", 0, NULL, 'P'}, {"positionlog", 0, NULL, 'P'},
@ -2145,9 +2147,11 @@ int main(int argc, char **argv)
case 'K': case 'K':
SET(RAW_SEQUENCES); SET(RAW_SEQUENCES);
break; break;
#ifndef NANO_TINY
case 'L': case 'L':
UNSET(FINAL_NEWLINE); UNSET(FINAL_NEWLINE);
break; break;
#endif
#ifdef ENABLED_WRAPORJUSTIFY #ifdef ENABLED_WRAPORJUSTIFY
case 'M': case 'M':
SET(TRIM_BLANKS); SET(TRIM_BLANKS);