Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page