diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,7 @@ // vim: shiftwidth=4 tabstop=4 noexpandtab +// stlscope is a file viewer for the STL file format. It is based on Go +// and OpenGL. package main import ( @@ -9,11 +11,13 @@ import ( "io/ioutil" ) +// cliArgs contains all data given via command line arguments. type cliArgs struct { filePath string debugOutput bool } +// main represents the whole functionality of stlscope. func main() { // read command line arguments and mute log if necessary @@ -50,6 +54,7 @@ func main() { } } +// read reads the command line arguments given to stlscope to a cliArgs struct. func (args *cliArgs) read() { flag.BoolVar(&args.debugOutput, "debug", false, "enable to print log output") |