Skip to content

Arguing is a library to do argument parsing without bloating your apps, Third-party free.

License

Notifications You must be signed in to change notification settings

ZSendokame/arguing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arguing

Arguing is a Lightweight and simple Argument parsing library that gives you all the control, no third party libraries.
Not uploading to PyPi, for now, and also not adding features, arguing is complete for me, only bugfixes.

PyPi Version PyPi Downloads

Installation

You can use PIP to install the library.

pip install arguing

# Or, the latest version on GitHub

pip install git+https://github.com/ZSendokame/arguing.git

Use

After installing the library, here's a brief tutorial.

from arguing import Arguing

args = Arguing('Help message goes here!')
argument = arguing.set(
    name='--argument',  # Argument name.
    flag=False,  # If set to true, it will return if the flag is present instead of the user input.
    type=str,  # Type of the argument, by default string.
    default=None  # If not a flag, but still has no value, returns this.
    required=False  # For required arguments/flags. If the user did not use it, exits with the help message.
)
# Also, you can define a variable to the function and it will return the value.

print(arguing.get('--argument'))  # Another way of obtaining the argument/flag value! not recommended though.
print(argument)

About

Arguing is a library to do argument parsing without bloating your apps, Third-party free.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages