in reply to Re^3: how to make -h optional in GetOpt::Long
in thread how to make -h optional in GetOpt::Long

All switches are optional. (On that subject, the docs say "That's why they're called 'options'.") If you don't want a switch to be optional, you have to explicitely check to make sure a value was supplied, after calling GetOptions.
  • Comment on Re^4: how to make -h optional in GetOpt::Long