www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22394] New: std.getopt cannot handle "-"


          Issue ID: 22394
           Summary: std.getopt cannot handle "-"
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: dlang-bugzilla thecybershadow.net

"-" is commonly used to refer to standard input. This convention is followed by
many tools, including GNU coreutils.

std.getopt currently always throws if it sees an "-" argument, unless
Config.passThrough mode is enabled.

Oct 16 2021