on-internet
← Community

Negatable options in perl

Stack Overflow ·

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?

Comments

Sign in or sign up to comment and upvote.

No comments yet.