bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60661] addftinfo: fails to emit diagnostic when option argument mi


From: G. Branden Robinson
Subject: [bug #60661] addftinfo: fails to emit diagnostic when option argument missing
Date: Sun, 23 May 2021 22:24:08 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?60661>

                 Summary: addftinfo: fails to emit diagnostic when option
argument missing
                 Project: GNU troff
            Submitted by: gbranden
            Submitted on: Mon 24 May 2021 02:24:07 AM UTC
                Category: Utilities
                Severity: 2 - Minor
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

This came up in bug #60639.

I don't think lines 112-113 of src/utils/addftinfo/addftinfo.cpp work as
intended.


    $ addftinfo -asc-height -body-depth 60
    usage: addftinfo [-v] [-param value] ... resolution unitwidth font
    $ addftinfo -body-depth 60 -asc-depth
    usage: addftinfo [-v] [-param value] ... resolution unitwidth font


The code should be emitting a complaint diagnostic before (or instead of) the
usage message, but this doesn't happen.

Setting severity to "minor", both because the user can infer that they screwed
up and because probably few people have any reason to use this utility these
days.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60661>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]