Parse Command Line Arguments From String
Project description
Pixelsuft Parse Arguments
Parse Command Line Arguments From String
Change Log
Added set
Function For Getting String From Arguments
Example
from parse_args import get as get_args
from parse_args import set as get_str
print(str(get_args(' test.exe /f /m --file "lol lol.txt" --test 1 2')))
print(get_str(['test.exe', '-F', 'test.txt lol']))
Output:
['test.exe', '/f', '/m', '--file', 'lol lol.txt', '--test', '1', '2']
"test.exe" "-F" "test.txt lol"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
parse_args-2.0.0.tar.gz
(1.8 kB
view hashes)