Pull flags in main.go out to the top level
[armadillo.git] / main.go
diff --git a/main.go b/main.go
index 07d97b22d178ee95f084b0f7796c15f863882d20..361865791df2154cc7de8142acd0f1166b26fd4e 100644 (file)
--- a/main.go
+++ b/main.go
@@ -18,11 +18,13 @@ import (
        "strings"
 )
 
+var (
+       configPath = flag.String("config", "~/.armadillo", "Path to the configuration file")
+       jailRoot   = flag.String("jail", "", "Restrict file operations to this directory root")
+       port       = flag.Int("port", 0, "Port to run the server on")
+)
+
 func main() {
-       // Set up the basic flags.
-       var configPath *string = flag.String("config", "~/.armadillo", "Path to the configuration file")
-       var jailRoot *string = flag.String("jail", "", "Restrict file operations to this directory root")
-       var port *int = flag.Int("port", 0, "Port to run the server on")
        flag.Parse()
 
        // Load the configuration file, if it is present.