Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
DynareJulia
Dynare.jl
Commits
2a65897f
Commit
2a65897f
authored
Jan 05, 2021
by
MichelJuillard
Browse files
fix command line options handling
parent
ed8cb604
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/DynarePreprocessor.jl
View file @
2a65897f
...
...
@@ -4,14 +4,12 @@ function dynare_preprocess(modfilename, args)
dynare_args
=
[
basename
(
modfilename
),
"language=julia"
,
"output=third"
,
"json=compute"
]
offset
=
0
for
a
in
args
if
occursin
(
r
"^output="
,
a
)
deleteat!
(
dynare_args
,
3
)
offset
=
1
elseif
occursin
(
r
"^json="
,
a
)
deleteat!
(
dynare_args
,
4
-
offset
)
astring
=
string
(
a
)
if
(
!
occursin
(
r
"^output="
,
astring
)
&&
!
occursin
(
r
"^json="
,
astring
))
push!
(
dynare_args
,
astring
)
end
end
append!
(
dynare_args
,
args
)
println
(
dynare_args
)
run_dynare
(
modfilename
,
dynare_args
)
end
...
...
Write
Preview
Supports
Markdown
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