in usage(), fix inaccuracies in the usage example
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3486 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
b02a1950e7
commit
560e83f143
|
@ -148,6 +148,8 @@ CVS code -
|
||||||
Schulenberg)
|
Schulenberg)
|
||||||
- Remove redundant key checks. (DLR)
|
- Remove redundant key checks. (DLR)
|
||||||
- nano.c:
|
- nano.c:
|
||||||
|
usage()
|
||||||
|
- Fix inaccuracies in the usage example. (DLR)
|
||||||
renumber()
|
renumber()
|
||||||
- Remove invalid assert. (DLR, found by Filipe Moreira)
|
- Remove invalid assert. (DLR, found by Filipe Moreira)
|
||||||
- nano.h:
|
- nano.h:
|
||||||
|
|
11
src/nano.c
11
src/nano.c
|
@ -721,15 +721,14 @@ void print1opt_full(const char *shortflag
|
||||||
/* Explain how to properly use nano and its command line options. */
|
/* Explain how to properly use nano and its command line options. */
|
||||||
void usage(void)
|
void usage(void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_GETOPT_LONG
|
printf(_("Usage: nano [OPTIONS] [[+LINE[,COLUMN]] FILE]...\n\n"));
|
||||||
printf(
|
printf(
|
||||||
_("Usage: nano [+LINE,COLUMN] [GNU long option] [option] [file]\n\n"));
|
#ifdef HAVE_GETOPT_LONG
|
||||||
printf(_("Option\t\tLong option\t\tMeaning\n"));
|
_("Option\t\tGNU long option\t\tMeaning\n")
|
||||||
#else
|
#else
|
||||||
printf(_("Usage: nano [+LINE,COLUMN] [option] [file]\n\n"));
|
_("Option\t\tMeaning\n")
|
||||||
printf(_("Option\t\tMeaning\n"));
|
|
||||||
#endif
|
#endif
|
||||||
|
);
|
||||||
print1opt("-h, -?", "--help", N_("Show this message"));
|
print1opt("-h, -?", "--help", N_("Show this message"));
|
||||||
print1opt(_("+LINE,COLUMN"), "",
|
print1opt(_("+LINE,COLUMN"), "",
|
||||||
N_("Start at line LINE, column COLUMN"));
|
N_("Start at line LINE, column COLUMN"));
|
||||||
|
|
Loading…
Reference in New Issue