all repos

clerk @ 64f0a9da04eeaff2be4bdd70cb97c3da16951bab

missing tooling for ledger/hledger
1 files changed, 8 insertions(+), 8 deletions(-)
cli: enable short args support only for formatter
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-08-03 11:44:08 +0300
Authored at: 2026-08-01 14:47:10 +0300
Change ID: oxtqmszrvskpmyxokmpzpywkknzuuprp
Parent: cb22f86
M internal/cli/cli.go
ยทยทยท
        18
        18
         

      
        19
        19
         func (c *Cli) Run(ctx context.Context, args []string) error {

      
        20
        20
         	cmd := &cli.Command{

      
        21
        
        -		Name:                   "clerk",

      
        22
        
        -		Usage:                  "missing pta tooling",

      
        23
        
        -		Version:                c.version,

      
        24
        
        -		EnableShellCompletion:  true,

      
        25
        
        -		UseShortOptionHandling: true,

      
        
        21
        +		Name:                  "clerk",

      
        
        22
        +		Usage:                 "missing pta tooling",

      
        
        23
        +		Version:               c.version,

      
        
        24
        +		EnableShellCompletion: true,

      
        26
        25
         		Commands: []*cli.Command{

      
        27
        26
         			{

      
        28
        
        -				Name:   "format",

      
        29
        
        -				Usage:  "reformat journal files",

      
        30
        
        -				Action: c.formatAction,

      
        
        27
        +				Name:                   "format",

      
        
        28
        +				Usage:                  "reformat journal files",

      
        
        29
        +				Action:                 c.formatAction,

      
        
        30
        +				UseShortOptionHandling: true,

      
        31
        31
         				Arguments: []cli.Argument{&cli.StringArgs{

      
        32
        32
         					Name:      "journals",

      
        33
        33
         					UsageText: "(path to journal files/directories (stdin if empty))",