summaryrefslogtreecommitdiff
path: root/argv.parseOsArgs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 14:51:30 -0500
committerJeff Carr <[email protected]>2025-10-25 14:51:30 -0500
commit418f790437ac264ede889604f31e6d81c7d35cd0 (patch)
treed073e7933824c4ae815bda411bf1ee7441f4dd47 /argv.parseOsArgs.go
parent22fcb080548bc57847c2405d724e9f40364fa621 (diff)
compiles and does something. notsure
Diffstat (limited to 'argv.parseOsArgs.go')
-rw-r--r--argv.parseOsArgs.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/argv.parseOsArgs.go b/argv.parseOsArgs.go
index d28e7e7..b7d4774 100644
--- a/argv.parseOsArgs.go
+++ b/argv.parseOsArgs.go
@@ -8,10 +8,15 @@ import (
"strings"
)
+func GetCmd() string {
+ return PB.GetCmd()
+}
+
// todo: this is wrong
func (pb *Argv) GetCmd() string {
var curcmd string
- for _, s := range os.Args[1:] {
+ // for _, s := range os.Args[1:] {
+ for _, s := range pb.Real {
if strings.HasPrefix(s, "-") {
// option is something like --verbose
// skip these. they are not subcommands