[Home]

Summary:ASTERISK-06429: [patch] cli tries to print usage even if there isn't one
Reporter:Edwin Groothuis (mavetju)Labels:
Date Opened:2006-02-27 05:06:15.000-0600Date Closed:2008-01-15 17:04:11.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) patch-cli.c
Description:Try the command "pri set debug file"". It will show up as:

CLI> pri set debug file
(null)

This is because "pri set debug file" doesn't have a usage defined, but the function in cli.c tries to print it anyway. With this patch:

*CLI> pri set debug file
Invalid usage, but no usage information available.
Comments:By: Russell Bryant (russell) 2006-02-27 08:24:15.000-0600

added to the 1.2 branch and trunk in revisions 11281 and 11282, thanks!

By: Digium Subversion (svnbot) 2008-01-15 17:04:11.000-0600

Repository: asterisk
Revision: 11281

U   branches/1.2/cli.c

------------------------------------------------------------------------
r11281 | russell | 2008-01-15 17:04:10 -0600 (Tue, 15 Jan 2008) | 3 lines

don't try to print the help text for a CLI command when RESULT_SHOWUSAGE is
returned if there is no help text available (issue ASTERISK-6429)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=11281

By: Digium Subversion (svnbot) 2008-01-15 17:04:11.000-0600

Repository: asterisk
Revision: 11282

_U  trunk/
U   trunk/cli.c

------------------------------------------------------------------------
r11282 | russell | 2008-01-15 17:04:11 -0600 (Tue, 15 Jan 2008) | 3 lines

don't try to print the help text for a CLI command when RESULT_SHOWUSAGE is
returned if there is no help text available (issue ASTERISK-6429)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=11282