관리-도구
편집 파일: lve_read_snapshot_argparse.cpython-311.pyc
� �Cg � �B � d dl Z d dlZd dlmZmZ d dlmZmZ dZdd�ZdS )� N)�datetime� timedelta)�check_timestamp�period_type2� c �B �� t j dddt j �� � }| pt j � � �|� dt j ddd�� � |� d d dd�t t � � � z � d� � � � � dd�� � |� � � }|� dddd�� d� � � � � �� � |� dd�fd�d�� � |� dt d�� � |� � � }|� dddd t �!� � |� d"d#d$d �%� � |� d&d'd(d)d �*� � |� d+d,d-d.�/� � |� d0d1d2d)d �*� � |� � � }|� d3d4d)d �*� � |� d5d6d7d8�9� � |S ):Nzlve-read-snapshotTz-Reads lve system state snapshots for LVE/user)�prog�add_help�description�formatter_classz --versionzVersion number�version)r �help�dest�actionz-fz--from�+zdRun report from date and time in YYYY-MM-DD HH:MM format, if not present last 10 minutes are assumed)�minutesz%Y-%m-%d %H:%M�ffrom�FROM)�nargsr �defaultr �metavarz-tz--tozdRun report up to date and time in YYYY-MM-DD HH:MM format, if not present, reports results up to now)r r r z-pz--periodc �&