main code (#8)

Reviewed-on: #8
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-07-28 21:28:37 +00:00
committed by phoenix
parent 75dd476d71
commit 6f9029d4e3
+14 -1
View File
@@ -1,9 +1,22 @@
package main package main
import "fmt" import "fmt"
import "os"
const VERSION = "0.4.100" const VERSION = "0.4.101"
func main() { func main() {
fmt.Println("clean_file") 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
} }