mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Support "meteor admin help".
(I assume this was intended to work because it is explicitly suggested when you type "meteor admin"!)
This commit is contained in:
@@ -685,10 +685,12 @@ Fiber(function () {
|
||||
for (var i = 0; i < rawArgs.length; i++) {
|
||||
var word = rawArgs[i];
|
||||
|
||||
if (word === "help" && i === 0) {
|
||||
// "meteor help some command" (note that we can't support
|
||||
// "meteor some command help", since "meteor deploy help"
|
||||
// needs to actually deploy a site called 'help')
|
||||
// Support "meteor help", "meteor help deploy", "meteor help admin",
|
||||
// "meteor admin help", "meteor admin help grant", etc. (But not
|
||||
// "meteor deploy help" or "meteor admin grant help": once we find an
|
||||
// actual command, we assume "help" is an argument, eg a site called
|
||||
// 'help'!)
|
||||
if (word === "help") {
|
||||
showHelp = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ selftest.define("help", function () {
|
||||
run.expectExit(0);
|
||||
};
|
||||
checkSubcommandList(s.run("help", "admin"));
|
||||
checkSubcommandList(s.run("admin", "help"));
|
||||
checkSubcommandList(s.run("admin", "--help"));
|
||||
checkSubcommandList(s.run("--help", "admin"));
|
||||
|
||||
@@ -48,6 +49,7 @@ selftest.define("help", function () {
|
||||
};
|
||||
|
||||
checkSubcommandHelp(s.run("help", "admin", "grant"));
|
||||
checkSubcommandHelp(s.run("admin", "help", "grant"));
|
||||
checkSubcommandHelp(s.run("admin", "grant", "--help"));
|
||||
checkSubcommandHelp(s.run("--help", "admin", "grant"));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user