Yesterday we looked at how to disable a menu item, based on the
presence/absence of an option on the command line. However, let's
now go a whole step further and... disable a module based on
something parsed from the command line. Let's assume we have a
module that provides an Admin window, invoked from a menu item in
the Help menu, as shown below:
Now, if anyone other than the admin user starts up the
application, the window above, as well as the menu item that shows
it,...