bugGNU Astronomy Utilities - Bugs: bug #62944, No warning when the option value...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #62944: No warning when the option value isn't immediately after the equal sign

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Tue 23 Aug 2022 03:01:51 PM UTC
   
 
Category:  All Gnuastro Severity:  3 - Normal
Item Group:  Crash Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Tue 23 Aug 2022 03:18:53 PM UTC, comment #1: 

This bug has been fixed in Commit da5158b0bd4.

The latest tarball that contains this fix can be downloaded at https://akhlaghi.org/gnuastro-latest.tar.lz

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 23 Aug 2022 03:01:51 PM UTC, original submission:  

When the user gives a value to a long option using the '=' sign (for example '--hdu=1'), the value should immediately come after the '=' sign. However, it can happen that the user mistakenly puts a space after the equal sign (for example '--hdu= 1').

In such situations, the program will usually crash with a confusing error message, or even worse, produce unreasonable outputs. So Gnuastro's program should print a warning in such cases to let the user know how to fix the problem.

This bug was reported by Faezeh Bijarchian.

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  • -email is unavailable- added by makhlaghi
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-08-23 makhlaghi StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2022-08-23 makhlaghi Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code