From ce7363cc11be596fb1a2e3e9ae3ac32072498734 Mon Sep 17 00:00:00 2001 From: Neo <321592+Neo-Desktop@users.noreply.github.com> Date: Thu, 13 Oct 2022 18:23:38 -0700 Subject: [PATCH] document environment variables application will respond to modified: main.go --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index d5f0cc9..d9cae46 100644 --- a/main.go +++ b/main.go @@ -25,10 +25,10 @@ const ( func init() { flag.Usage = usage - flagAPIKEY := flag.String("apikey", "", "Required: Steamworks Web API key") + flagAPIKEY := flag.String("apikey", "", "Required: Steamworks Web API key [env: WSDL_APIKEY]") flagHELP := flag.Bool("help", false, "Displays this help message") - flagPREFIX := flag.String("prefix", "."+string(os.PathSeparator)+"workshop", "path to the /addons/workshop folder") - flagMANIFEST := flag.String("manifest", "workshopmanifest.json", "filename to store the current state of downloaded files (will be stored in prefix)") + flagPREFIX := flag.String("prefix", "."+string(os.PathSeparator)+"workshop", "path to the /addons/workshop folder [env: WSDL_PREFIX]") + flagMANIFEST := flag.String("manifest", "workshopmanifest.json", "filename to store the current state of downloaded files (will be stored in prefix) [env: WSDL_MANIFEST]") envAPIKEY := os.Getenv("WSDL_APIKEY") envPREFIX := os.Getenv("WSDL_PREFIX") @@ -92,7 +92,7 @@ func usage() { flag.PrintDefaults() - fmt.Fprintf(os.Stderr, " string\n Required: one or more Steamworks collection(s) or file ID(s) to download\n") + fmt.Fprintf(os.Stderr, " string\n Required: one or more Steamworks collection(s) or file ID(s) to download (space seperated) [env: WSDL_SEEDS]\n") fmt.Fprintf(os.Stderr, "\nPlease visit %s for source code and more information\n\n", REPOURL) }