Skip to content

Commit 6b45e55

Browse files
committed
Log cli arguments
1 parent c3beb62 commit 6b45e55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/cli/cli.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ func Run() {
2727
initConfig()
2828
initLogger()
2929

30+
logCLIArguments()
31+
3032
runCaptureModeIfConditionSatisfied()
3133

3234
if config.GlobalConfig.ShowVersion {
@@ -75,3 +77,7 @@ func runToCompletionOrSigterm(f func() error) error {
7577

7678
return err
7779
}
80+
81+
func logCLIArguments() {
82+
logger.Log("CLI Arguments: %v", os.Args)
83+
}

0 commit comments

Comments
 (0)