sdispater / clikit

CliKit is a group of utilities to build beautiful and testable command line interfaces.
MIT License
72 stars 17 forks source link

Does not expose verbosity flags #44

Open gmichaeljaison opened 3 years ago

gmichaeljaison commented 3 years ago

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'
kira607 commented 2 years ago

@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.