summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-06 18:14:33 -0600
committerJeff Carr <[email protected]>2025-01-06 18:14:33 -0600
commitcd7d256a8040997467b5ec63aff182cdce207ca8 (patch)
treeadd27598226e7824f60954fbf783320fca8316f5 /argv.go
parent5434ab498bf1ab1909f2a2511110c3c6bba280cc (diff)
even better bash
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/argv.go b/argv.go
index d01841c..2e94309 100644
--- a/argv.go
+++ b/argv.go
@@ -15,8 +15,8 @@ type EmptyCmd struct {
}
type PatchCmd struct {
- List bool `arg:"--list" help:"list available patches"`
- Show string `arg:"--show" help:"show a specific patch"`
+ List *EmptyCmd `arg:"subcommand:list" help:"list available patches"`
+ Show *EmptyCmd `arg:"subcommand:show" help:"show a specific patch"`
}
type ConfigCmd struct {
@@ -46,7 +46,7 @@ type args struct {
Checkout *CheckoutCmd `arg:"subcommand:checkout" help:"switch git branches"`
Config *ConfigCmd `arg:"subcommand:config" help:"show your .config/forge/ settings"`
Dirty *EmptyCmd `arg:"subcommand:dirty" help:"check if your git repos are dirty"`
- GitReset *EmptyCmd `arg:"subcommand:hard-reset" help:"hard reset your user git branch"`
+ GitReset *EmptyCmd `arg:"subcommand:hard-reset" help:"hard reset your user git branches"`
List *FindCmd `arg:"subcommand:list" help:"just show a table of the current state"`
Patch *PatchCmd `arg:"subcommand:patch" help:"examine and make patch sets"`
GitPull *FindCmd `arg:"subcommand:pull" help:"run 'git pull'"`