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 details)

Uploaded Source

File details

Details for the file parse_args-2.0.0.tar.gz.

File metadata

  • Download URL: parse_args-2.0.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.0

File hashes

Hashes for parse_args-2.0.0.tar.gz
Algorithm Hash digest
SHA256 dd061fcfb08f6c26c1cf5eddc460e8306cdfe09157e8597593a47afe8d18a32c
MD5 9a4619c8019e8bd9f8d42a2b0ae239ce
BLAKE2b-256 194c2329cfe4439c4a329da27fc45b747846cd29b1da942aa5c96a24f678a027

See more details on using hashes here.

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