From 526ee700250f215b796f0b4aa43b41304abb4e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radom=C3=ADr=20Bos=C3=A1k?= Date: Fri, 10 Mar 2017 17:47:06 +0100 Subject: [PATCH] Rename the shorthand for -search from -p to -S -S is more intuitive --- jrnl/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/cli.py b/jrnl/cli.py index cbb7777f..8bc2c26c 100644 --- a/jrnl/cli.py +++ b/jrnl/cli.py @@ -35,7 +35,7 @@ def parse_args(args=None): reading = parser.add_argument_group('Reading', 'Specifying either of these parameters will display posts of your journal') reading.add_argument('-from', dest='start_date', metavar="DATE", help='View entries after this date') reading.add_argument('-until', '-to', dest='end_date', metavar="DATE", help='View entries before this date') - reading.add_argument('-p', '-search', dest='search_plain', help='View entries containing a specific string') + reading.add_argument('-S', '-search', dest='search_plain', help='View entries containing a specific string') reading.add_argument('-on', dest='on_date', metavar="DATE", help='View entries on this date') reading.add_argument('-and', dest='strict', action="store_true", help='Filter by tags using AND (default: OR)') reading.add_argument('-starred', dest='starred', action="store_true", help='Show only starred entries')