cli: parse and resolve flags

Copy all flags from upstream. The machinectl flag is dropped as it does nothing. the flag package is used to reduce complexity since we do not care about compatibility with upstream.

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-07-09 15:39:40 +09:00
commit 491cc16d53
4 changed files with 107 additions and 0 deletions

12
main.go Normal file
View File

@@ -0,0 +1,12 @@
package main
import (
"flag"
)
var Version = "impure"
func main() {
flag.Parse()
copyArgs()
}