Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e10c5597
Commit
e10c5597
authored
May 11, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display -? as -\? under unix for psql.
parent
0fbde5d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
src/bin/psql/startup.c
src/bin/psql/startup.c
+19
-6
No files found.
src/bin/psql/startup.c
View file @
e10c5597
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.3
0 2000/05/11 01:37:54
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.3
1 2000/05/11 03:14:19
momjian Exp $
*/
*/
#include "postgres.h"
#include "postgres.h"
...
@@ -82,7 +82,8 @@ static void
...
@@ -82,7 +82,8 @@ static void
static
void
static
void
showVersion
(
void
);
showVersion
(
void
);
static
void
explain_help_and_exit
(
void
);
/*
/*
*
*
...
@@ -513,8 +514,7 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
...
@@ -513,8 +514,7 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
/* unknown option reported by getopt */
/* unknown option reported by getopt */
else
else
{
{
fputs
(
"Try -? for help.
\n
"
,
stderr
);
explain_help_and_exit
();
exit
(
EXIT_FAILURE
);
}
}
break
;
break
;
#ifndef HAVE_GETOPT_LONG
#ifndef HAVE_GETOPT_LONG
...
@@ -525,8 +525,7 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
...
@@ -525,8 +525,7 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options)
break
;
break
;
#endif
#endif
default:
default:
fputs
(
"Try -? for help.
\n
"
,
stderr
);
explain_help_and_exit
();
exit
(
EXIT_FAILURE
);
break
;
break
;
}
}
}
}
...
@@ -640,3 +639,17 @@ showVersion(void)
...
@@ -640,3 +639,17 @@ showVersion(void)
puts
(
"Read the file COPYRIGHT or use the command
\\
copyright to see the"
);
puts
(
"Read the file COPYRIGHT or use the command
\\
copyright to see the"
);
puts
(
"usage and distribution terms."
);
puts
(
"usage and distribution terms."
);
}
}
static
void
explain_help_and_exit
(
void
)
{
#ifdef WIN32
fputs
(
"Try -? for help.
\n
"
,
stderr
);
#else
/* !WIN32 */
fputs
(
"Try -
\\
? for help.
\n
"
,
stderr
);
#endif
/* WIN32 */
exit
(
EXIT_FAILURE
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment