From 69251d528916eecd144cf0eb0b09843fca3e0abe Mon Sep 17 00:00:00 2001 From: Thomas Wallrafen Date: Fri, 12 Dec 2014 16:08:54 +0100 Subject: [PATCH] Add short variants to some long options. --compact => -C --month => -M --withtime => -w --- date2name | 6 +++--- date2name.1.txt | 11 +++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/date2name b/date2name index 2405fab..ff8a467 100755 --- a/date2name +++ b/date2name @@ -63,13 +63,13 @@ parser.add_option("-d", "--directories", dest="onlydirectories", parser.add_option("-f", "--files", dest="onlyfiles", action="store_true", help="modify only file names") -parser.add_option("--compact", dest="compact", +parser.add_option("-C", "--compact", dest="compact", action="store_true", help="use compact datestamp (YYYYMMDD)") -parser.add_option("--month", dest="month", +parser.add_option("-M", "--month", dest="month", action="store_true", help="use datestamp with year and month (YYYY-MM)") -parser.add_option("--withtime", dest="withtime", +parser.add_option("-w", "--withtime", dest="withtime", action="store_true", help="use datestamp including seconds (YYYY-MM-DDThh.mm.ss)") # parser.add_option("-r", "--remove", dest="remove", diff --git a/date2name.1.txt b/date2name.1.txt index 8e630b2..cf623ad 100644 --- a/date2name.1.txt +++ b/date2name.1.txt @@ -23,7 +23,7 @@ Executed with an examplefilename "file" this results e.g. in "2008-12-31_file" if the 31st of december 2008 is the modification time of the file. If an existing timestamp is found, its style will be converted to the selected -ISO datestamp format but the numbers stays the same. +ISO datestamp format but the numbers stays the same. Executed with an examplefilename "20071130-file", date2name reformats the existing datestamp to the (default) datestamp format. In this example it @@ -50,15 +50,15 @@ names (including links). Modify only file names including links. Default is: modify directory names as well as file names. - *--compact*:: + *-C* *--compact*:: Use compact datestamp format: YYYYMMDD - *--month*:: + *-M* *--month*:: Use datestamp format with year and month: YYYY-MM - *--withtime*:: + *-w* *--withtime*:: Use long datestamp format including timestamp: YYYY-MM-DDThh.mm.ss @@ -75,7 +75,7 @@ Use creation time for generating new datestamps. Do not output anything but just errors on console. *-v*, *--verbose*:: - + Be verbose when writing output. Good for investigating unwanted behaviour in combination with dryrun mode. @@ -141,4 +141,3 @@ Please report feedback, bugreports and wishes <>. Author ------ Karl Voit -