Save the user command text into the command object
Bug #1411095 reported by
Dean Troyer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cliff |
Fix Released
|
Wishlist
|
Dean Troyer |
Bug Description
The Command objects do not know what command string the user entered to invoke the Command class. since the user text to class mapping is done in entry points the Command class does not know what invoked it. Sometimes it is useful to know this, especially when multiple command entry points load the same class.
App.run_subclass() pass the command name in the cmd_factory() call.
One use case for this is when subclassing command classes, for example, or to change behaviour through the command name; think of it as symlinking UNIX commands and branching based on the value of $0 or argv[0].
Changed in python-cliff: | |
milestone: | none → next-kilo |
importance: | Undecided → Wishlist |
Changed in python-cliff: | |
milestone: | 1.10.0 → next-kilo |
Changed in python-cliff: | |
milestone: | 1.10.1 → next-liberty |
Changed in python-cliff: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/147381
Review: https:/