help tweaks

This commit is contained in:
Luke Sampson
2013-06-17 21:05:27 +10:00
parent 652510c393
commit f71a69c19f
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -5,6 +5,9 @@ param($app)
. "$(split-path $myinvocation.mycommand.path)\..\core.ps1"
. (resolve ../manifest.ps1)
. (resolve ../help_comments.ps1)
if(!$app) { "ERROR: <app> missing"; my_usage; exit }
$manifest = manifest $app
if(!$manifest) { abort "couldn't find manifest for '$app'" }
+2 -2
View File
@@ -11,6 +11,6 @@ function help($text) {
$help_lines -replace '(?ms)^# (Help: )?', ''
}
function my_usage {
"usage: $(usage (gc $myInvocation.PSCommandPath -raw))"
function my_usage { # gets usage for the calling script
usage (gc $myInvocation.PSCommandPath -raw)
}