Utility functions used in command sub-package.
Command name can also be a single or double dash.
Regular expression matching bracket argument such as <arg_name>.
Regular expression matching long options (prefixed with double dash).
Regular expression matching showt options. They are one character long, prefixed with single dash.
Regular expression matching argument written in upper case such as ARG_NAME.
Get a module name of caller from particular outer frame.
Parameters: | frame_level (integer) – Number of nested frames to skip when searching for called function scope by inspecting stack upwards. When the result of this function is applied directly on the definition of function, it’s value should be 1. When used from inside of some other factory, it must be increased by 1. Level 0 returns name of this module. Level 1 returns module name of caller. Level 2 returns module name of caller’s caller. |
---|---|
Returns: | Module name. |
Return type: | string |
Check, whether the given method is abstract in given class or list of classes. May be used to check, whether we should override particular abstract method in a meta-class in case that no non-abstract implementation is defined.
Parameters: |
|
---|---|
Returns: | Are all occurences of given method abstract? |
Return type: | boolean |