flagser-2.4


توضیحات

Flag manager
ویژگی مقدار
سیستم عامل OS Independent
نام فایل flagser-2.4
نام flagser
نسخه کتابخانه 2.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Alfred Roos
ایمیل نویسنده alfred@stensatter.se
آدرس صفحه اصلی https://github.com/spynetS/flagser
آدرس اینترنتی https://pypi.org/project/flagser/
مجوز -
# Flagser This is a library that makes args very easy to handle in python to add a new flag write ``` class NewFlag(Flag): shortFlag = "-n" longFlag = "--newFlag" description="this is a discripton of what this flag does" def onCall(self,args): print("here you can do what you want") flag2 = Flag(shortFlag="n2", description="this is the secound description", onCall= lambda args: print("runs")) a = FlagManager([NewFlag(),flag2]) a.check() ``` Then add the flags you have created as the constructor parameters for the FlagManager then call the check() of the flagmanager object and the flagmanager will check the flags


نحوه نصب


نصب پکیج whl flagser-2.4:

    pip install flagser-2.4.whl


نصب پکیج tar.gz flagser-2.4:

    pip install flagser-2.4.tar.gz