Edgewall Software
Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10783 closed enhancement (fixed)

Trac-Admin: No documentation found for 'update'

Reported by: jonathan@… 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 Remy Blank, 12 years ago

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?

comment:2 by Ryan J Ollos <ryan.j.ollos@…>, 12 years ago

Cc: ryan.j.ollos@… added

I tend to prefer the reporters suggestion.

comment:3 by Christian Boos, 12 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:4 by Ryan J Ollos <ryan.j.ollos@…>, 12 years ago

Yeah, that seems like a nice general solution.

comment:5 by Jun Omae, 12 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 Christian Boos, 12 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 Jun Omae, 12 years ago

Thanks for the comments. Tweaked scoring for the suggestions in [cb587094/jomae.git].

comment:8 by Remy Blank, 12 years ago

Ok, that's a bit on the over-engineering side for me, but I don't mind :)

comment:9 by Christian Boos, 12 years ago

Well, I guess git raised our expectations, for Jun and me ;-)

comment:10 by Remy Blank, 12 years ago

I have difficulty imagining how this could have happened. Oh well…

comment:11 by Christian Boos, 12 years ago

[trunk $] $ git sttis
git: 'sttis' is not a git command. See 'git --help'.

Did you mean this?
        status

comment:12 by Jun Omae, 12 years ago

Resolution: fixed
Status: newclosed

Applied in [11165:11166].

comment:13 by Jun Omae, 12 years ago

Owner: set to Jun Omae

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.