Skip to content

Commit 81f791e

Browse files
committed
correct for equal sign in flag options
1 parent e6688d0 commit 81f791e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

fpm.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rev = "2f5eaba864ff630ba0c3791126a3f811b6e437f3"
1212

1313
[dependencies.M_CLI2]
1414
git = "https://github.com/urbanjost/M_CLI2.git"
15-
rev = "1f3b922ce35f105d1a51869bed9a1013b5b552b6"
15+
rev = "ea6bbffc1c2fb0885e994d37ccf0029c99b19f24"
1616

1717
[[test]]
1818
name = "cli-test"

src/fpm_environment.f90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,12 @@ function get_command_arguments_quoted() result(args)
215215
write(stderr,'(*(g0,1x))')'<ERROR>*get_command_arguments_stack* error obtaining argument ',i
216216
exit
217217
elseif(ilength.gt.0)then
218+
!TODO! should escape or double quotes depending on system
219+
!TODO! on some systems might have to do more to requote
218220
if(index(arg//' ','-').ne.1)then
219221
args=args//quote//arg//quote//' '
222+
elseif(index(arg,' ').ne.0)then
223+
args=args//quote//arg//quote//' '
220224
else
221225
args=args//arg//' '
222226
endif

0 commit comments

Comments
 (0)