From d55655f23ac862d85e66851311e3b146435ab775 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Wed, 27 Dec 2000 03:36:47 +0000 Subject: [PATCH] Reordered --help usage listing by alpha git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@428 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ nano.c | 15 +++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9319e29b..b7b81bd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ CVS code - - faq.html: - Fix typos and small mistakes (Jordi). +- nano.c: + main() + - Reorder the getopt options to be more or less alphabetical + (suggested by Sven Guckes). nano 0.9.24 - 12/18/2000 General diff --git a/nano.c b/nano.c index 68e2552a..9e010072 100644 --- a/nano.c +++ b/nano.c @@ -367,12 +367,12 @@ void usage(void) (" -c --const Constantly show cursor position\n")); printf(_ (" -h --help Show this message\n")); + printf(_ + (" -i --autoindent Automatically indent new lines\n")); #ifndef NANO_SMALL printf(_ (" -k --cut Let ^K cut from cursor to end of line\n")); #endif - printf(_ - (" -i --autoindent Automatically indent new lines\n")); printf(_ (" -l --nofollow Don't follow symbolic links, overwrite\n")); #ifndef NANO_SMALL @@ -380,11 +380,11 @@ void usage(void) printf(_(" -m --mouse Enable mouse\n")); #endif #endif + printf(_ + (" -p --pico Emulate Pico as closely as possible\n")); printf (_ (" -r [#cols] --fill=[#cols] Set fill cols to (wrap lines at) #cols\n")); - printf(_ - (" -p --pico Emulate Pico as closely as possible\n")); printf(_ (" -s [prog] --speller=[prog] Enable alternate speller\n")); printf(_ @@ -407,10 +407,10 @@ void usage(void) printf(_(" -V Print version information and exit\n")); printf(_(" -c Constantly show cursor position\n")); printf(_(" -h Show this message\n")); + printf(_(" -i Automatically indent new lines\n")); #ifndef NANO_SMALL printf(_(" -k Let ^K cut from cursor to end of line\n")); #endif - printf(_(" -i Automatically indent new lines\n")); printf(_ (" -l Don't follow symbolic links, overwrite\n")); #ifndef NANO_SMALL @@ -418,10 +418,9 @@ void usage(void) printf(_(" -m Enable mouse\n")); #endif #endif - printf(_ - (" -r [#cols] Set fill cols to (wrap lines at) #cols\n")); - printf(_(" -s [prog] Enable alternate speller\n")); printf(_(" -p Emulate Pico as closely as possible\n")); + printf(_(" -r [#cols] Set fill cols to (wrap lines at) #cols\n")); + printf(_(" -s [prog] Enable alternate speller\n")); printf(_(" -t Auto save on exit, don't prompt\n")); printf(_(" -v View (read only) mode\n")); printf(_(" -w Don't wrap long lines\n")); -- 2.39.5