sw

simple wallet
git clone git://git.bitsmanent.org/sw
Log | Files | Refs | README | LICENSE

commit 73679f7fdf308b27793413ed47e9473300cdcaa1
parent bb2bc4a2804560f96b36e080c108b77f05cda564
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sat, 29 Jun 2024 15:10:07 +0200

Extend the man page with -e, -f and -t. Replace -f with -i.

Diffstat:
Msw.1 | 14++++++++++++--
Msw.c | 2+-
2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/sw.1 b/sw.1 @@ -3,7 +3,7 @@ sw \- simple wallet .SH SYNOPSIS .B sw -.RB [ \-v ]\ [ \-defit \ <arg>]\ [ \-l \ [arg] ]\ [<date>\ <amount>\ <note>] +.RB [ \-v ]\ [ \-defit \ <arg>]\ [ \-l \ [limit] ]\ [<date\ [time]>\ <amount>\ <note>] .SH DESCRIPTION sw is a simple wallet management tool which features a simple yet powerful interface to keep track of your money movements. @@ -15,9 +15,19 @@ prints version information to standard output, then exits. .B \-d\ <id> remove the specified movement, then exits. .TP -.B \-f\ <file> +.B \-e\ <text> +consider only movements that include the given string (case insensitive) +.TP +.B \-f\ <date\ [time]> +consider only movements after the given date and optional time +.TP +.B \-i\ <file> use the given file as movements database. .TP .B \-l\ [limit] limit the number of movements in the listing. In no argument is specified then assume a value of 25. +.TP +.B \-t\ <date\ [time]> +consider only movements before the given date and optional time + diff --git a/sw.c b/sw.c @@ -265,7 +265,7 @@ strtots(char *s) { void usage(void) { - die("Usage: %s [-v] [-defilt <arg>] [<date> <amount> <note>]\n", argv0); + die("Usage: %s [-v] [-defit <arg>] [-l [limit]] [<date [time]> <amount> <note>]\n", argv0); } int