diff --git a/main.go b/main.go index d99725f..1875a2e 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,22 @@ package main import "fmt" +import "os" -const VERSION = "0.4.100" +const VERSION = "0.4.101" func main() { fmt.Println("clean_file") + args := os.Args + + if len(args) < 2 { + fmt.Println("Invalid arguments provided") + os.Exit(-1) + } + + filepath := args[1] + + fmt.Println("File path:", filepath) + // TODO: Create parser package and Parser struct to do the remaining + // work }