Metadata-Version: 2.1
Name: ezflags
Version: 1.4.2
Summary: A tool that makes creating command line flags super easy.
Home-page: https://github.com/karx1/ezflags
Author: karx
Author-email: nerdstep710@gmail.com
License: MIT
Project-URL: Documentation, https://ezflags.readthedocs.io/en/latest
Description: ezflags
        =======
        
        .. image:: https://travis-ci.com/karx1/ezflags.svg?branch=master
            :target: https://travis-ci.com/karx1/ezflags
        .. image:: https://badge.fury.io/py/ezflags.svg
            :target: https://badge.fury.io/py/ezflags
            :alt: PyPI package
        .. image:: https://readthedocs.org/projects/ezflags/badge/?version=latest
        	:target: https://ezflags.readthedocs.io/en/latest/?badge=latest
        	:alt: Documentation Status
        
        
        A tool that makes creating command line flags super easy.
        
        Similar to `argparse <https://docs.python.org/3/library/argparse.html>`__,
        switching is no problem at all! You can even use the FlagParserExtended as if it
        were a normal ArgumentParser for full integration with existing
        arguments.
        
        Install with:
        
        .. code:: bash
        
           pip install ezflags
        
        Here’s a simple example:
        
        .. code:: py
        
           # main.py
           import ezflags
        
           parser = ezflags.FlagParser()
           parser.add_flag('--flag', '-f', value=True, help="A demo flag.")
        
           flags = parser.parse_flags()
           print(flags.flag)
        
        To integrate with ArgumentParser:
        
        .. code:: py
        
           from ezflags.ext import FlagParserExtended
        
           parser = FlagParserExtended()
           parser.add_flag('--flag', '-f', value=True, help="A demo flag.")
           parser.add_argument('--arg', '-a', help="A demo argument.")
        
           args = parser.parse_args() # Flags are included, too!
           print(args.flag)
           print(args.arg)
        
        This can be invoked as such:
        
        .. code:: bash
        
           python main.py --flag
           # With ArgumentParser()
           python main.py --flag --arg arg
        
        View the full documentation
        `here <https://ezflags.readthedocs.io/en/latest/>`__.
        
        Supports
        --------
        
        Supports Python 3.6 and up.
        
        License
        -------
        
        MIT license. See the
        `LICENSE <https://github.com/karx1/ezflags/blob/master/LICENSE>`__ file
        for more details.
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Provides-Extra: docs
