Skip to content

Commit 43dfb73

Browse files
extract tool arguments from command
1 parent 587f5b8 commit 43dfb73

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎main.go‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,12 @@ func runSilo(cmd *cobra.Command, args []string, stdout, stderr io.Writer) error
395395
cfg := config.LoadAll(toolDefaults())
396396
noTTY := boolFlag(cmd, "no-tty") || !isStdoutTTY(stdout)
397397

398+
// Get tool-specific args (everything after --)
399+
var toolArgs []string
400+
if cmd.ArgsLenAtDash() > -1 {
401+
toolArgs = args[cmd.ArgsLenAtDash():]
402+
}
403+
398404
// Get cwd for repo matching
399405
cwd, _ := os.Getwd()
400406

@@ -476,6 +482,7 @@ func runSilo(cmd *cobra.Command, args []string, stdout, stderr io.Writer) error
476482
// Run the tool
477483
return run.Tool(run.Options{
478484
ToolDef: *toolDef,
485+
ToolArgs: toolArgs,
479486
Config: cfg,
480487
Dockerfile: Dockerfile(*toolDef),
481488
ForceBuild: forceBuild,

0 commit comments

Comments
 (0)