File: //usr/lib/python3/dist-packages/django/core/management/commands/__pycache__/shell.cpython-310.pyc
o
3�a� � @ sP d dl Z d dlZd dlZd dlZd dlmZmZ d dlmZ G dd� de�Z dS )� N)�BaseCommand�CommandError)�
OrderedSetc @ sD e Zd ZdZg Zg d�Zdd� Zdd� Zdd� Zd d
� Z dd� Z
d
S )�Commandz�Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available. Any standard input is executed as code.)�ipython�bpython�pythonc C s8 |j dddd� |j dd| jdd� |j d d
dd� d S )
Nz--no-startup�
store_truezaWhen using plain Python, ignore the PYTHONSTARTUP environment variable and ~/.pythonrc.py script.)�action�helpz-iz--interfacezcSpecify an interactive interpreter interface. Available options: "ipython", "bpython", and "python")�choicesr z-cz --commandzJInstead of opening an interactive shell, run a command as Django and exit.)r )�add_argument�shells)�self�parser� r �G/usr/lib/python3/dist-packages/django/core/management/commands/shell.py�
add_arguments s ��
�zCommand.add_argumentsc C s ddl m} |g d� d S )Nr )�
start_ipython)�argv)�IPythonr )r �optionsr r r r r "