Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
83a142e1
...
83a142e11e3fc5c06b2af3717ea69e993a909268
authored
2001-07-30 13:57:10 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Set g_argv[0] to the program file name for consistency with guile.
1 parent
ed53a5f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
guimb/main.c
guimb/main.c
View file @
83a142e
...
...
@@ -18,7 +18,7 @@
#include "guimb.h"
#include "getopt.h"
static
char
short_options
[]
=
"de:f:g:h
m:
v"
;
static
char
short_options
[]
=
"de:f:g:hv"
;
static
struct
option
long_options
[]
=
{
{
"debug"
,
no_argument
,
0
,
'd'
},
{
"expression"
,
required_argument
,
0
,
'e'
},
...
...
@@ -62,6 +62,7 @@ main (int argc, char *argv[])
{
int
c
;
append_arg
(
""
);
while
((
c
=
getopt_long
(
argc
,
argv
,
short_options
,
long_options
,
NULL
))
!=
-
1
)
switch
(
c
)
...
...
@@ -89,6 +90,8 @@ main (int argc, char *argv[])
"Invalid argument. Try guimb --help for more info
\n
"
);
exit
(
1
);
}
if
(
program_file
)
g_argv
[
0
]
=
program_file
;
append_arg
(
NULL
);
g_argc
--
;
...
...
Please
register
or
sign in
to post a comment