File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ type LanguageContainer struct {
4242}
4343
4444// Run accepts an implementation of the LanguageContainer.
45+ // The args parameter contains the command-line arguments passed to the container,
46+ // without including the program name. Usually it's os.Args[1:].
4547func Run (args []string , container * LanguageContainer ) int {
4648 // Logic to parse args and call the appropriate method on the container.
4749 // For example, if args[1] is "generate":
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func runCLI(args []string) int {
5252 Generate : generate .Generate ,
5353 ReleaseInit : release .Init ,
5454 }
55- return languagecontainer .Run (args , & container )
55+ return languagecontainer .Run (args [ 1 :] , & container )
5656}
5757
5858func parseLogLevel (logLevelEnv string ) slog.Level {
You can’t perform that action at this time.
0 commit comments