/
opt
/
gsutil
/
gslib
/
utils
/
__pycache__
/
up file
home
a +(Wg� � @ s, d Z ddlZddlZddlmZ dd� ZdS )z:Contains helper for parsing command arguments and options.� N)�CommandExceptionc C sT zt � tjdd� dg d��W S t jyN } zt| j��W Y d} ~ n d} ~ 0 0 dS )a8 Gets the list of arguments and options from the command input. Returns: The return value consists of two elements: the first is a list of (option, value) pairs; the second is the list of program arguments left after the option list was stripped (this is a trailing slice of the first argument). � NzdDvo:?h:i:u:mq)�debugZ detailedDebug�version�option�help�headerzimpersonate-service-account=Z multithreaded�quietZtestexceptiontracesztrace-token=zperf-trace-token=)�getopt�sys�argv�GetoptErrorr �msg)�e� r �%/opt/gsutil/gslib/utils/arg_helper.py�GetArgumentsAndOptions s r )�__doc__r r �gslib.exceptionr r r r r r �<module> s