mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
23 lines
281 B
Go
23 lines
281 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// args without the program path
|
|
var Args = os.Args[1:]
|
|
|
|
func main() {
|
|
ex, e := os.Getwd()
|
|
if e != nil {
|
|
panic(e)
|
|
}
|
|
if len(Args) == 0 {
|
|
panic("No file specified")
|
|
}
|
|
err := importMod(Args[0], ex, true)
|
|
if err.EXISTS {
|
|
panicErr(err)
|
|
}
|
|
}
|