Use 'case' instead of getopt
Rename public_view to user_view
Split ID from fullname