Progress Help Menu

This commit is contained in:
Sangelo 2023-10-05 21:55:39 +02:00
parent 215d807a3d
commit 2f0caa12f9

View file

@ -12,13 +12,13 @@ type
]
var commands: seq[Command] = @[
("help", "Displays this help message"),
("init", "Initialise a project directory with default settings"),
("template", "Initialise a project directory with default settings"),
("help", "Displays this help message."),
("init", "Initialise a project directory with default settings."),
("config", "Configure dashinit settings and preferences."),
]
var options: seq[Option] = @[
("-h", "Displays this help message")
("-h", "Displays this help message.")
]
proc displayHelp*() =
@ -36,6 +36,6 @@ proc displayHelp*() =
styledEcho " ", styleBright, option.arg, resetStyle, " \t", option.desc
echo "\nExamples:"
echo " dashinit\t\t\tInitialises using default settings."
styledEcho " ", "dashinit ", "template get ", fgBlue, "<url>", resetStyle, "\tGets a template from the internet"
echo " ", "dashinit", "\t\t\t", "Initialises using default settings."
echo " ", "dashinit template -h", "\t\t", "Shows the help menu for the template subcommand."
# styledEcho styleBright, fgGreen, "[PASS]", resetStyle, fgGreen, " Yay!"