commit 7fd4aa35f084883b8e635257fc26584e5c1ac79e
parent c46570b497eb171fe09af63853c5a1e4e7d77d08
Author: Claudio Alessi <smoppy@gmail.com>
Date: Sat, 29 Jun 2024 00:26:30 +0200
Use -i instead of -f which will be used for "date from" filter.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sw.1 b/sw.1
@@ -3,7 +3,7 @@
sw \- simple wallet
.SH SYNOPSIS
.B sw
-.RB [ \-v ]\ [ \-d \ <id>]\ [ \-f \ <file>]\ [ \-l \ <limit>]\ [<date>\ <amount>\ <note>]
+.RB [ \-v ]\ [ \-d \ <id>]\ [ \-i \ <file>]\ [ \-l \ <limit>]\ [<date>\ <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.
diff --git a/sw.c b/sw.c
@@ -213,7 +213,7 @@ strtots(char *s) {
void
usage(void) {
- die("Usage: %s [-v] [-d <id>] [-f <file>] [-l <limit>] [<date> <amount> <note>]\n", argv0);
+ die("Usage: %s [-v] [-d <id>] [-i <file>] [-l <limit>] [<date> <amount> <note>]\n", argv0);
}
int
@@ -222,7 +222,7 @@ main(int argc, char *argv[]) {
ARGBEGIN {
case 'd': delid = atoi(EARGF(usage())); break;
- case 'f': snprintf(movsfilename, sizeof movsfilename, "%s", EARGF(usage())); break;
+ case 'i': snprintf(movsfilename, sizeof movsfilename, "%s", EARGF(usage())); break;
case 'l': limit = atoi(EARGF(usage())); break;
case 'v': die("sw-"VERSION"\n");
default: usage();