Bug 8205 – Order of dmd '-run' flag is wrong on Mac OS X

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Mac OS X
Creation time
2012-06-07T00:49:00Z
Last change time
2012-06-07T01:17:54Z
Assigned to
nobody
Creator
rix0rrr

Comments

Comment #0 by rix0rrr — 2012-06-07T00:49:57Z
According to Walter, the order should be 'dmd FILE -run', but when I do that I get an error. Writing 'dmd -run FILE' works. > $ dmd helloworld.d -run > Error: argument expected for switch '-run' > $ dmd -run helloworld.d > hello world Version: > DMD64 D Compiler v2.059
Comment #1 by code — 2012-06-07T01:08:22Z
The command line parsing code is specifically written to parse »dmd <compile_args> -run file.d <run_args>« – where did Walter (or better, the docs) say otherwise?
Comment #2 by rix0rrr — 2012-06-07T01:16:29Z
(In reply to comment #1) > The command line parsing code is specifically written to parse »dmd > <compile_args> -run file.d <run_args>« – where did Walter (or better, the docs) > say otherwise? Didn't read the docs, but I'm following a course by Walter right now and apparently he forgot the correct syntax :). Nevermind then.
Comment #3 by code — 2012-06-07T01:17:54Z
Changed the resolution, as we didn't actually fix the “bug”.