Commandline args to rdmd --eval=...

closescreen via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 20 02:26:12 PDT 2017


Hello, all.
Is it possible to pass cli args to rdmd eval-program?

F.e. if I try:

rdmd --eval="args.writeln" -- 123

then: Cannot have both --eval and a program file ('123')

In perl it's possible:

perl -e'print join ",", @ARGV' 123 234

# 123,234


More information about the Digitalmars-d-learn mailing list