sdispater / clikit

CliKit is a group of utilities to build beautiful and testable command line interfaces.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not expose verbosity flags

gmichaeljaison opened this issue · comments

As explained in the Cleo documentation, clickit does not expose verbosity flags in the main module. Hence clikit.VERBOSITY_VERBOSE is not available.

Cleo documentation example:

self.line("", verbosity=clikit.VERBOSITY_VERBOSE)

Error throwing example:

python -c "import clikit; print(clikit.VERBOSITY_VERBOSE)"

Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'clikit' has no attribute 'VERBOSITY_VERBOSE'

@gmichaeljaison
The flags are at clikit.api.io.flags, but the don't really work...
I tried using this piece of code

self.line('Starting Application...', verbosity=clikit.api.io.flags.DEBUG)

with the -vvv flag but I didn't get any output.