[llvm-bugs] [Bug 46400] New: Change to print help instead of reading from stdin when running without arguments

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 19 07:25:55 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46400

            Bug ID: 46400
           Summary: Change to print help instead of reading from stdin
                    when running without arguments
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-readobj
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: jh7370.2008 at my.bristol.ac.uk, llvm-bugs at lists.llvm.org

GNU readelf, when executed with no input files prints the help text. This is
fairly standard behaviour for most tools. llvm-readelf does not - it instead
tries to read the object from stdin. Reading from stdin seems to not be a
particularly useful behaviour for most users, and can also be achieved via a
'-' for the input object. We should change llvm-readelf (and llvm-readobj for
consistency) to do the same as GNU does. This will necessesitate a number of
updates to tests, but otherwise should be fairly straightforward to do (the
updates would be to just use '-' instead).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200619/2984ead7/attachment.html>


More information about the llvm-bugs mailing list