[Feature Idea] add way to see abbreviations and command descriptions more easily #7
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: solderpunk/AV-98#7
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unless there is a way to find these that I haven't discovered, what I've been doing is going into code every time I want to see these.
I have three ideas, in case you like any!
I do realize the extra verbosity does add some new complexity, like what to do if the help text is really long! That's the case for
add
command, which I added to the above list, and tried out just adding its first line to the verbose output above, which I think could strike a nice balance.What do you think?
Hey, sorry for the slow response to this!
I like this idea in principle, but the output of
help
is generated automatically by thecmd
module, it just looks at the docstring for eachdo_
method defined. As a result I have very limited control over how it is formatted and what is included.Would a separate
abbrevs
command or something like that which produced something like the first two columns of your suggestion be of any use, or do you think people would miss that it was there? I guess if they triedhelp
first they'd see it listed there...No worries! Ah, I see. I wasn't aware Python shipped with all of that built-in! Neat.
abbrevs
sounds like a very workable solution, and way less work than monkey-patching all of the built-in help-printing code! I can even donate that, if you're open to it! !13