commander.js icon indicating copy to clipboard operation
commander.js copied to clipboard

Version 1.0.5 breaks help display that worked in 1.0.4

Open christav opened this issue 14 years ago • 3 comments

Using the Windows azure node cli (https://github.com/WindowsAzure/azure-sdk-for-node), with commander 1.0.4, our help looked like this:

info:
info:    Windows Azure: Microsoft's Cloud Platform
info:
info:    Tool version 0.6.5
help:
help:    Display help for a given command
help:      help [options] [command]
help:
help:    Commands:
help:      account                Manage your account information and publish settings

(truncated for conciseness)

With the new 1.0.5, we get this instead:

info:
info:    Windows Azure: Microsoft's Cloud Platform
info:
info:    Tool version 0.6.5
help:
help:    Display help for a given command
help:      undefined [options] [command]
help:
help:    Commands:
help:      account                Manage your account information and publish settings

Note the undefined in there. Also, just about anywhere we print a subcommand name, it comes back as undefined. For example:

> node bin\azure site list
info:    Executing command site undefined

That should say "site list", and it does when using 1.0.4.

The commands themselves seem to be working / dispatching properly.

christav avatar Oct 11 '12 23:10 christav

shit not cool, ill check this out tomorrow, remind me in the morning if i dont reply

tj avatar Oct 12 '12 00:10 tj

Any updates?

christav avatar Oct 13 '12 05:10 christav

examples all work for me

tj avatar Oct 15 '12 23:10 tj