Thread overview
[Issue 8205] New: Order of dmd '-run' flag is wrong on Mac OS X
Jun 07, 2012
Rico Huijbers
Jun 07, 2012
klickverbot
Jun 07, 2012
Rico Huijbers
Jun 07, 2012
klickverbot
June 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8205

           Summary: Order of dmd '-run' flag is wrong on Mac OS X
           Product: D
           Version: D2
          Platform: All
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: rix0rrr@gmail.com


--- Comment #0 from Rico Huijbers <rix0rrr@gmail.com> 2012-06-07 00:49:57 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8205


klickverbot <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@klickverbot.at


--- Comment #1 from klickverbot <code@klickverbot.at> 2012-06-07 01:08:22 PDT ---
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?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8205


Rico Huijbers <rix0rrr@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Rico Huijbers <rix0rrr@gmail.com> 2012-06-07 01:16:29 PDT ---
(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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8205


klickverbot <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID


--- Comment #3 from klickverbot <code@klickverbot.at> 2012-06-07 01:17:54 PDT ---
Changed the resolution, as we didn't actually fix the “bug”.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------