diff --git a/.vscode/launch.json b/.vscode/launch.json index 6aec7f0..fde70db 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,6 @@ "mode": "auto", "program": "${workspaceFolder}/main.go", "args": [ - "--address", ":80", "--memory", "1G", "--disk", "10G", "--disk-path", "tmp/disk", diff --git a/cmd/root.go b/cmd/root.go index 941fa86..cd51832 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -29,7 +29,6 @@ import ( ) var ( - address string memory string memorymultiplier int disk string @@ -47,7 +46,7 @@ var rootCmd = &cobra.Command{ significantly improving download times and reducing the load on the internet connection.`, Run: func(cmd *cobra.Command, args []string) { sc := steamcache.New( - address, + ":80", memory, memorymultiplier, disk, @@ -68,7 +67,6 @@ func Execute() { } func init() { - rootCmd.Flags().StringVarP(&address, "address", "a", ":80", "The address to listen on") rootCmd.Flags().StringVarP(&memory, "memory", "m", "100MB", "The size of the memory cache") rootCmd.Flags().IntVarP(&memorymultiplier, "memory-multiplier", "M", 10, "The multiplier for the memory cache") rootCmd.Flags().StringVarP(&disk, "disk", "d", "10GB", "The size of the disk cache")