Compare commits

...

1 Commits

Author SHA1 Message Date
maemachinebroke 61a317fa79 add cli args 2026-07-14 07:54:18 -05:00
3 changed files with 33 additions and 2 deletions
+31
View File
@@ -0,0 +1,31 @@
package main
import "flag"
type arguments struct {
buildDeps bool
library bool
output string
depsPath string
test bool
}
func main() {
initArgs()
}
func initArgs() *arguments {
b := flag.Bool("b", false, "Enables building dependencies from source, instead of searching for already compiled binaries in the library path.")
l := flag.Bool("l", false, "Determines if the output should be placed in the standard dependency crate path.")
o := flag.String("o", "build", "Output path for this compilation. Should only be used for binaries.")
p := flag.String("p", "/usr/lib/feynman", "Library path root.")
t := flag.Bool("t", false, "Enables tests. Does not run Cargo benchmarks or examples.")
flag.Parse()
return &arguments{
buildDeps: *b,
library: *l,
output: *o,
depsPath: *p,
test: *t,
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
package feynman
package cargo
type CargoLock struct {
Packages []LockPackage `toml:"package"`
+1 -1
View File
@@ -1,4 +1,4 @@
package feynman
package cargo
type CargoManifest struct {
Package `toml:"package"`