-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Labels
Description
Hi,
Sorry to bother you so much. I think I found a bug: running ./test_basic --string hello
gives me
...
Integer list inputs:
Input(1) = +1
Input(2) = +140308968915872
Input(3) = +140734567466896
...
Whereas the default values are 1 8 32. If I add --integer_list 1 2 3
everything works fine. I tracked it down, and it seems that the default separator 'args_sep' is not inserted into the default list. I could fix it by replacing
call tokenize(strin=buffer, delimiter=args_sep, toks=vals, Nt=Nv)
with
if(.not.self%is_passed) then
call tokenize(strin=buffer, delimiter=' ', toks=vals, Nt=Nv)
else
call tokenize(strin=buffer, delimiter=args_sep, toks=vals, Nt=Nv)
endif
But that is probably not a good way of doing it. I tried figuring out the parse
sobroutine, but my brain started hurting when I tried to figure out what to add.