#10783 closed enhancement (fixed)
Trac-Admin: No documentation found for 'update'
| Reported by: | Owned by: | Jun Omae | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.12.4 |
| Component: | admin/console | Version: | |
| Severity: | normal | Keywords: | error message |
| Cc: | ryan.j.ollos@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Could this message be changed to:
No documentation found for 'update' - maybe you meant 'upgrade'?
I'm new with Trac, and I am so used to typing update that I typed it and got the error message; the first few times, I thought something was broken in my install and I wasted some time trying to fix it before I realized I meant upgrade.
Attachments (0)
Change History (13)
comment:1 by , 13 years ago
comment:3 by , 13 years ago
| Milestone: | → 0.12.4 |
|---|
What about [7ad55cae/cboos.git]?
[ticket10783/unknown-command] $ PYTHONPATH=. python trac/admin/console.py ../../envs/cblaptop-trac/ update Error: Command not found No documentation found for 'update'. Use 'help' to see the list of commands.
comment:5 by , 13 years ago
In repos:jomae.git:ticket10783/suggest-command, trac-admin suggests the similar commands using Levenshtein distance when such a situation. Thoughts?
Welcome to trac-admin 0.12.4dev
Interactive Trac administration console.
Copyright (C) 2003-2012 Edgewall Software
Type: '?' or 'help' for help on commands.
Trac [/home/jun66j5/var/trac/0.12-stable]> update
Error: Command not found
No documentation found for 'update'. Use 'help' to see the list of commands.
Did you mean one of these?
upgrade
Trac [/home/jun66j5/var/trac/0.12-stable]> blah
Error: Command not found
No documentation found for 'blah'. Use 'help' to see the list of commands.
comment:6 by , 13 years ago
Excellent :-)
I would just also add unconditionally the commands which start with the given input, so that the suggestion for perm would be permission, for example. Another minor glitch is that any one letter input prompts "wiki" as the suggestion (1 delete, 4 adds).
comment:7 by , 13 years ago
Thanks for the comments. Tweaked scoring for the suggestions in [cb587094/jomae.git].
comment:8 by , 13 years ago
Ok, that's a bit on the over-engineering side for me, but I don't mind :)
comment:11 by , 13 years ago
[trunk $] $ git sttis
git: 'sttis' is not a git command. See 'git --help'.
Did you mean this?
status
comment:13 by , 13 years ago
| Owner: | set to |
|---|



I'm split between simply adding "update" as a synonym of "upgrade", because it's dead simple to do, and suggesting that if you are the administrator of a Trac instance, you should at least read a bit of documentation and know about
trac-admin $ENV help.What do others think?