This commit is contained in:
Akizon77
2025-07-20 07:54:04 +00:00
parent a8ada8203d
commit 4704d0daa8
4 changed files with 491 additions and 0 deletions

View File

@@ -13,4 +13,5 @@ var (
InfoReportInterval int
IncludeNics string
ExcludeNics string
MonthRotate int
)

View File

@@ -70,5 +70,6 @@ func init() {
RootCmd.PersistentFlags().IntVar(&flags.InfoReportInterval, "info-report-interval", 5, "Interval in minutes for reporting basic info")
RootCmd.PersistentFlags().StringVar(&flags.IncludeNics, "include-nics", "", "Comma-separated list of network interfaces to include")
RootCmd.PersistentFlags().StringVar(&flags.ExcludeNics, "exclude-nics", "", "Comma-separated list of network interfaces to exclude")
RootCmd.PersistentFlags().IntVar(&flags.MonthRotate, "month-rotate", 0, "Month reset for network statistics (0 to disable)")
RootCmd.PersistentFlags().ParseErrorsWhitelist.UnknownFlags = true
}