'Parse the global arguments.
It consumes what the common object needs to know, and
let the children look at all the options.  We could
remove the options that we have used, but there is no
harm in leaving them, and the children may need them
in the future.
Must be called from its children parse()'

def parse_global(self):

    (options, leftover) = self.parser.parse_args()
    self.debug = options.debug
    self.kill_on_failure = options.kill_on_failure
    if options.parse:
        suffix = '_parse'
    else:
        suffix = '_std'
    for func in ['print_fields', 'print_table', 'print_by_ids', 'print_list']:
        setattr(self, func, getattr(self, (func + suffix)))
    self.parse_delim = options.parse_delim
    self.verbose = options.verbose
    self.web_server = options.web_server
    self.username = options.username
    try:
        self.afe = rpc.afe_comm(self.web_server, username=self.username)
    except rpc.AuthError as s:
        self.failure(str(s), fatal=True)
    return (options, leftover)
