Skip to content

Commit fad704e

Browse files
committed
explicitly parse args for standalone invocation case
1 parent 1f67827 commit fad704e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
set -euo pipefail
2929

30-
version=0.0.14 # TODO integrate with releases.
30+
version=0.0.15 # TODO integrate with releases.
3131

3232
settle_base=$(pwd)
3333

main.go

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ func mainE(ctx context.Context) error {
4242
if command != "" && command != "ensure" {
4343
return fmt.Errorf("unknown subcommand %s", command)
4444
}
45+
if err := ensure.Parse(args); err != nil {
46+
return fmt.Errorf("parse args: %w", err)
47+
}
4548
return ensure.Exec(ctx, args)
4649
},
4750
}

0 commit comments

Comments
 (0)