Negatable options in perl
I have a negatable option defined as top!. When a command uses this option, say : command_name -top, prints a warning to the user Code snippet for it is as follows : if ($args{top}) { print "Warning"; } But, when a command uses a negated option, say : command_name -notop, it does not print the same warning to the user. Is there a way to get same warning for both the cases?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.