Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.198
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python37 /
share /
doc /
alt-python37-args /
Delete
Unzip
Name
Size
Permission
Date
Action
LICENSE
1.25
KB
-rw-r--r--
2012-05-08 10:11
README.rst
2.12
KB
-rw-r--r--
2012-05-08 10:11
Save
Rename
args ==== Argument Parsing for Humans. Usage ----- Here's an example application:: import args print 'Aruments passed in: ' + str(args.all) print 'Files detected: ' + str(args.files) print 'NOT files detected: ' + str(args.not_files) print 'Grouped Arguments: ' + str(args.grouped) No arguments:: $ tool Aruments passed in: [] Flags detected: <args []> Files detected: [] NOT Files detected: <args []> Grouped Arguments: {'_': <args []>} A few arguments:: $ tool -s this that --import this and that and this and that Aruments passed in: ['-s', 'this', 'that', '--import', 'this', 'and', 'that', 'and', 'this', 'and', 'that'] Flags detected: <args ['-s', '--import'Files detected: [] NOT Files detected: <args ['-s', 'this', 'that', '--import', 'this', 'and', 'that', 'and', 'this', 'and', 'that']> Grouped Arguments: {'--import': <args ['this', 'and', 'that', 'and', 'this', 'and', 'that']>, '_': <args []>, '-s': <args ['this', 'that']>} A few expanded file arguments:: $ tool *.py Aruments passed in: ['args.py', 'setup.py'] Flags detected: <args []> Files detected: ['args.py', 'setup.py'] NOT Files detected: <args []> Grouped Arguments: {'_': <args ['args.py', 'setup.py']>} A few non-expanded file arguments:: $ tool '*.py' Aruments passed in: ['*.py'] Flags detected: <args []> Files detected: ['args.py', 'setup.py'] NOT Files detected: <args []> Grouped Arguments: {'_': <args ['*.py']>} A few mixed files/flags/arguments:: $ tool '*.py' --test test face book -s ~/.ssh Aruments passed in: ['*.py', '--test', 'test', 'face', 'book', '-s', '/Users/kreitz/.ssh'] Flags detected: <args ['--test', '-s']> Files detected: ['args.py', 'setup.py', '/Users/kreitz/.ssh/id_rsa', '/Users/kreitz/.ssh/id_rsa.pub', '/Users/kreitz/.ssh/known_hosts'] NOT Files detected: <args ['--test', 'test', 'face', 'book', '-s']> Grouped Arguments: {'--test': <args ['test', 'face', 'book']>, '_': <args ['*.py']>, '-s': <args ['/Users/kreitz/.ssh']>} Installation ------------ Installation is simple with pip: $ pip install args