@@ -4,6 +4,7 @@ data CmdArg = ExprArg -- ^ The command takes an expression
4 | NameArg -- ^ The command takes a name
4 | NameArg -- ^ The command takes a name
5 | FileArg -- ^ The command takes a file
5 | FileArg -- ^ The command takes a file
6 | ModuleArg -- ^ The command takes a module name
6 | ModuleArg -- ^ The command takes a module name
7+ | NamespaceArg -- ^ The command takes a namespace name
7 | OptionArg -- ^ The command takes an option
8 | OptionArg -- ^ The command takes an option
8 | MetaVarArg -- ^ The command takes a metavariable
9 | MetaVarArg -- ^ The command takes a metavariable
9 | ColourArg -- ^ The command is the colour-setting command
10 | ColourArg -- ^ The command is the colour-setting command
@@ -16,6 +17,7 @@ instance Show CmdArg where
16 show NameArg = "<name>"
17 show NameArg = "<name>"
17 show FileArg = "<filename>"
18 show FileArg = "<filename>"
18 show ModuleArg = "<module>"
19 show ModuleArg = "<module>"
20+ show NamespaceArg = "<namespace>"
19 show OptionArg = "<option>"
21 show OptionArg = "<option>"
20 show MetaVarArg = "<metavar>"
22 show MetaVarArg = "<metavar>"
21 show ColourArg = "<option>"
23 show ColourArg = "<option>"
@@ -29,9 +31,7 @@ help =
29 ([":t"], ExprArg, "Check the type of an expression"),
31 ([":t"], ExprArg, "Check the type of an expression"),
30 ([":miss", ":missing"], NameArg, "Show missing clauses"),
32 ([":miss", ":missing"], NameArg, "Show missing clauses"),
31 ([":doc"], NameArg, "Show internal documentation"),
33 ([":doc"], NameArg, "Show internal documentation"),
32− ([":mkdoc"], NoArg, "Generate IdrisDoc for all .idr files in working directory and subdirectories"),
34+ ([":mkdoc"], NamespaceArg, "Generate IdrisDoc for namespace(s) and dependencies"),
33− ([":mkdoc"], NameArg, "Generate IdrisDoc for target namespace"),
34− ([":mkdoc"], OptionArg, "Generate IdrisDoc. Options: [notrace] [ns | dir] [TARGET]"),
35 ([":apropos"], NoArg, "Search names, types, and documentation"),
35 ([":apropos"], NoArg, "Search names, types, and documentation"),
36 ([":i", ":info"], NameArg, "Display information about a type class"),
36 ([":i", ":info"], NameArg, "Display information about a type class"),
37 ([":total"], NameArg, "Check the totality of a name"),
37 ([":total"], NameArg, "Check the totality of a name"),