mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-10-25 16:20:40 +00:00
help tweaks
This commit is contained in:
1 parent
652510c393
commit
f71a69c19f
2 files changed
+5
-2
No files matched your search
@@ -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