The unified diff between revisions [5587f68e..] and [95cbeaa8..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'commands.cc'

#
#
# patch "commands.cc"
#  from [61185ae5cc7cd776c25ca1655199a314bdd40378]
#    to [d04179187700889eee2af3e4e6ada1ffad5e7317]
#
============================================================
--- commands.cc	61185ae5cc7cd776c25ca1655199a314bdd40378
+++ commands.cc	d04179187700889eee2af3e4e6ada1ffad5e7317
@@ -318,6 +318,19 @@ private:
   system_path path;
 };

+
+CMD(help, N_("informative"), N_("command [ARGS...]"), N_("display command help"), OPT_NONE)
+{
+	if (args.size() < 1)
+		throw usage("");
+
+	string full_cmd = complete_command(idx(args, 0)());
+	if (cmds.find(full_cmd) == cmds.end())
+		throw usage("");
+
+	throw usage(full_cmd);
+}
+
 static void
 maybe_update_inodeprints(app_state & app)
 {