Changelog¶
This is a detailed rendering of what changed in each version.
v1.4.2¶
- Create custom exceptions. This makes it easier to include ezflags in error handlers.
- Add str() and repr() functionality to _ParsedObj. This makes it easier to see what flags are present and their values.
v1.4.1¶
- Move FlagParserExtended to a new location, ezflags.ext
- Bring back logging
v1.4.0¶
- This update is a complete rewrite of the module.
- It moves away from using argparse and instead parses flags “in-house”.
- The new class saves a lot of memory because it now only contains the logic for boolean flags.
- The argparse-like parser is still available through the FlagParserExtended class. (This may be moved to another location, so the import will be different.)
- The new parser class is still incomplete and may be buggy. Features will be brought back in the next series of incremental updates.
v1.3.3¶
- Add debug mode. This prints various messages about what the parser is currently doing. You can specify the file it writes to like this:
file = open("somefile.txt", "w")
parser = ezflags.FlagParser(debug=True, debug_file=file)
v1.3.2¶
- Change parser.flags to a dictionary with the flag names (and short versions, if applicable) corresponding to their value.
- Fix bug where an error was raised when providing only one flag name
v1.3.1¶
- Add parser.flags_short, which contains the short versions of each flag. Each index in flags_short corresponds to its longer counterpart in parser.flags.
v1.3.0¶
- You can now see a list of all the flags in the parser using parser.flags
- Performance improvements
v1.2.1¶
- Add a kwarg to specify whether the flag is required or not
- Limit to two flag names
- Improved type checking
- Take info from README and add it to index of documentation
v1.2.0¶
- Rename kwarg action to value
- Allow use of lists of flags in parse_flags(). Defaults to sys.argv[1:]
v1.1.4¶
- Create documentation
v1.1.3¶
- Add advanced functionality
v1.1.1¶
- Initial release