mirror of
https://github.com/chenasraf/cospend-cli.git
synced 2026-05-17 17:38:04 +00:00
fix: add -d shorthand for list date filter
This commit is contained in:
@@ -261,7 +261,7 @@ cospend list -p myproject --format json
|
||||
| `-c` | `--category` | Filter by category name or ID |
|
||||
| `-m` | `--method` | Filter by payment method name or ID |
|
||||
| `-l` | `--limit` | Limit number of results (0 = no limit) |
|
||||
| | `--date` | Filter by date (e.g., `2026-01-15`, `>=2026-01-01`, `<=01-15`) |
|
||||
| `-d` | `--date` | Filter by date (e.g., `2026-01-15`, `>=2026-01-01`, `<=01-15`) |
|
||||
| | `--today` | Filter bills from today |
|
||||
| | `--this-month` | Filter bills from the current month |
|
||||
| | `--this-week` | Filter bills from the current calendar week |
|
||||
|
||||
@@ -70,7 +70,7 @@ Examples:
|
||||
cmd.Flags().StringVarP(&listPaymentMethod, "method", "m", "", "Filter by payment method")
|
||||
cmd.Flags().StringVarP(&listCategory, "category", "c", "", "Filter by category")
|
||||
cmd.Flags().IntVarP(&listLimit, "limit", "l", 0, "Limit number of results (0 = no limit)")
|
||||
cmd.Flags().StringVar(&listDate, "date", "", "Filter by date (e.g., 2026-01-15, >=2026-01-01, <=01-15)")
|
||||
cmd.Flags().StringVarP(&listDate, "date", "d", "", "Filter by date (e.g., 2026-01-15, >=2026-01-01, <=01-15)")
|
||||
cmd.Flags().BoolVar(&listToday, "today", false, "Filter bills from today")
|
||||
cmd.Flags().BoolVar(&listThisMonth, "this-month", false, "Filter bills from the current month")
|
||||
cmd.Flags().BoolVar(&listThisWeek, "this-week", false, "Filter bills from the current calendar week")
|
||||
|
||||
Reference in New Issue
Block a user