> -u -user should work, did you test it? I thought getopt was smart > enough to know if an argument is needed, it comes next. I think > that's nicer than a different letter for command line and interactive > mode.
>From the man page: -U user Show only those processes owned by user. This option currently only accepts usernames and will not understand UID numbers. -u Do not take the time to map UID numbers to usernames. Normally, top will read as much of the password database as is necessary to map all the user ID numbers it encounters into login names. This option disables all that, while possibly decreasing execution time. The UID numbers are displayed instead of the names. Counter-intuitive but the same as free/netbsd. mark