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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 16 14:08:50 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22394

          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 at puremagic.com
          Reporter: dlang-bugzilla at 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.

--


More information about the Digitalmars-d-bugs mailing list