Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Parse command line arguments made easier...

Project description

𝘼𝙍𝙂 : Parse command line arguments made easier...


pip install arg


$ python ford -m mustang --year 2017 red

import arg

# argv without file name
# => ['ford', '-m', 'mustang', '--year', '2017', 'red']

# argv
# => ['', 'ford', '-m', 'mustang', '--year', '2017', 'red']

# argc
# => 7

# args as string
# => ford -m mustang --year 2017 red

# file name
# =>

# argument at n
# => -m



Return an array with the arguments without the file name

Return Type: list


Return an array with all the arguments. (arg.v ~> argv Argumet Vector)

Return Type: list


Return an array with all the arguments. (arg.c ~> argc Argument Count)

Return Type: int


Return an string with all the arguments. (arg.s ~> Arguments to String)

Return Type: str


Return an string with the name of the file

Return Type: str


Return the value of the argument at value at n

Return Type: str


  • lupe: A better CLI Helper.


Carlos Abraham Logo
Carlos Abraham


MIT License © Carlos Abraham

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for arg, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size arg-0.0.1-py3-none-any.whl (2.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size arg-0.0.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page