mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-08-27 16:46:38 +00:00
help tweaks
This commit is contained in:
@@ -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'" }
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user