Mercurial > projects > doodle
diff doodle/utils/prog/dupes.d @ 127:1da160a2c373
Chess checkpoint
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Mon, 12 Dec 2011 18:03:07 +1030 |
parents | 89016abde9fe |
children | bc5baa585b32 |
line wrap: on
line diff
--- a/doodle/utils/prog/dupes.d Fri Sep 09 17:17:06 2011 +0930 +++ b/doodle/utils/prog/dupes.d Mon Dec 12 18:03:07 2011 +1030 @@ -203,23 +203,25 @@ bool verbose; try { + string file_size_string = "100K"; + string digest_size_string = "100K"; + void help(in string) { writefln("Usage: dupes [OPTION]... DIR...\n" "Recursively locate duplicate files in a list of directories\n" "\n" "Options\n" - " -d, --digest-size=SIZE size of digest used for comparison\n" - " -f, --file-size=SIZE minimum size of files searched for duplication\n" + " -d, --digest-size=SIZE size of digest used for comparison [%s]\n" + " -f, --file-size=SIZE minimum size of files searched for duplication [%s]\n" " -v, --verbose be verbose\n" " --help display this help and exit\n" "\n" - "SIZE is an integer, optionally followed by K, M, G, T"); + "SIZE is an integer, optionally followed by K, M, G, T", + file_size_string, + digest_size_string); exit(1); } - string file_size_string = "100K"; - string digest_size_string = "100K"; - getopt(args, "file-size|f", &file_size_string, "digest-size|d", &digest_size_string,