File: //lib/python3/dist-packages/twisted/application/twist/__pycache__/_twist.cpython-38.pyc
U
W[�
� @ s| d Z ddlZddlmZ ddlmZmZ ddlmZm Z ddl
mZ dd lm
Z
dd
lmZ ddlmZ G dd
� d
e�ZdS )z
Run a Twisted application.
� N)�
UsageError� )�Application�IService)�exit�
ExitStatus)�Runner� )�TwistOptions)�_exitWithSignal)�_ISupportsExitSignalCapturingc @ sR e Zd ZdZedd� �Zedd� �Zedd� �Zedd � �Ze e
jfd
d��ZdS )
�Twistz$
Run a Twisted application.
c
C sX t � }z|�| dd� � W n6 tk
rR } zttjd�||�� W 5 d}~X Y nX |S )z�
Parse command line options.
@param argv: Command line arguments.
@type argv: L{list}
@return: The parsed options.
@rtype: L{TwistOptions}
r Nz
Error: {}
{})r
ZparseOptionsr r r �EX_USAGE�format)�argv�options�e� r �B/usr/lib/python3/dist-packages/twisted/application/twist/_twist.pyr s &z
Twist.optionsc C s&