I use a module Getopt::Longto process command line arguments.
The typical behavior of this module is that we can pass -finstead of the full name of the variable --file. At the same time, if I have another command line variable --find, and if I put it only -fon the command line, it will return with an error:
Option f is ambiguous (file, find).
I was wondering how we can curb such ambiguous use?
Thanks in advance.
source
share