wilzbach / tools-test

1 stars 0 forks source link

rdmd --eval ignores flags and program args #109

Closed wilzbach closed 10 years ago

wilzbach commented 10 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#13290 From: Nils <nilsbossung@googlemail.com> Reported version: D2

wilzbach commented 10 years ago

Comment author: Nils <nilsbossung@googlemail.com>


rdmd -debug '--eval=debug {} else assert(false);'

core.exception.AssertError@ /tmp/.rdmd-1000/eval.ED67B51406C6E567FF8177C457A624FE.d(18): Assertion failure


rdmd '--eval=assert(args[1] == "arg");' arg

core.exception.RangeError@ /tmp/.rdmd-1000/eval.962D23261531997F463C287790029FAE.d(18): Range violation

Pull request is on the way.

wilzbach commented 10 years ago

Comment author: Nils <nilsbossung@googlemail.com>

https://github.com/D-Programming-Language/tools/pull/140

wilzbach commented 10 years ago

Comment author: Nils <nilsbossung@googlemail.com>

rdmd <flags> --eval=code can be fixed independently.

I'm splitting this up into two separate issues, and adding a third one for rdmd --option value.

wilzbach commented 10 years ago

Comment author: Nils <nilsbossung@googlemail.com>

(In reply to Nils from comment BZ#2)

I'm splitting this up into two separate issues, and adding a third one for rdmd --option value.

done: issue 13344, issue 13345, issue 13346

Closing this. Not sure what status to choose. I'm going with RESOLVED INVALID.