Bug 703238

Summary: Add validation of command line options
Product: Ghostscript Reporter: Peter Cherepanov <sphinx.pinastri>
Component: GeneralAssignee: Ray Johnston <ray.johnston>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: 2335170959
Priority: P4    
Version: master   
Hardware: All   
OS: All   
Customer: Word Size: ---

Description Peter Cherepanov 2020-12-07 22:12:37 UTC
The two-level nature of command line argument processing makes full validation of command line arguments quite difficult to implement. However a partial solution is better than nothing.

Let's add a new options, for instance, -D that checks whether the name is present in a whitelist and rejects the rest.
Comment 1 Ray Johnston 2020-12-08 16:25:28 UTC
-D is already used -- it is a synonym for -d

This kind of thing might be part of our documentation improvement effort.

The importance of command line argument validation is sort of waning as the
use of Ghostscript (and GhostPDL) shifts to the newer API functions such as
gsapi_set_param using the JavaScript, Java, python, or C# bindings.
Comment 2 Peter Cherepanov 2020-12-09 19:08:10 UTC
*** Bug 703242 has been marked as a duplicate of this bug. ***