Document app.options and command.app attributes

Bug #1309442 reported by Andrew Svetlov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cliff
Triaged
Low
Unassigned

Bug Description

I would like to use self.app.options.verbose_level and self.app.options.debug from command instance to share very common options in my code.
That works fine but uses undocumented API.

Is it good way and .options and .app just should be documented or I have never look on application instance from commands?

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

The app object and its options object are definitely meant to be used in this way. There's even a hook so you can add global application options.

We do need to document that better.

Changed in python-cliff:
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.