optparse

 

C:\Users\Mr.chai>python C:/Users/Mr.chai/Desktop/PythonProject/DAY/day27/LuffyFTP/client/luffy_client.py -h
Usage: luffy_client.py [options]

Options:
-h, --help show this help message and exit
-s SERVER, --server=SERVER
ftp server ip_addr
-P PORT, --port=PORT ftp server port
-u USERNAME, --username=USERNAME
username info
-p PASSWORD, --password=PASSWORD
password info

posted on 2017-07-17 20:11  Mr_Chai  阅读(208)  评论(0编辑  收藏  举报