From 2a74bc0fcbbb82b768669d25bda0ac962f8fb253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 15 Mar 2005 00:02:21 +0000 Subject: [PATCH] --save now has -o and -s as short forms. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11750 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/clipboard.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/apps/bin/clipboard.cpp b/src/apps/bin/clipboard.cpp index 7780fc57f1..f6868626b2 100644 --- a/src/apps/bin/clipboard.cpp +++ b/src/apps/bin/clipboard.cpp @@ -3,7 +3,7 @@ * Distributed under the terms of the MIT license. * * Authors: - * jonas.sundstrom@kirilla.com + * Jonas Sundström, jonas@kirilla.com * Axel Dörfler, axeld@pinc-software.de. */ @@ -77,11 +77,12 @@ ClipboardApp::ArgvReceived(int32 argc, char **argv) }; int c; - while ((c = getopt_long(argc, argv, "l:o:c:ripd", kLongOptions, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "l:s:o:c:ripd", kLongOptions, NULL)) != -1) { switch (c) { case 'l': status = Load(optarg); break; + case 's': case 'o': status = Save(optarg); break; @@ -131,10 +132,11 @@ void ClipboardApp::Usage(void) { printf("usage: %s [-olcirpd]\n" - " -o, --save=file\tSave clipboard to file (flattened BMessage)\n" + " -s, --save=file\tSave clipboard to file (flattened BMessage)\n" + " -o\t\t\tthe same\n" // ToDo: (\"-\" for standard output/input)\n" " -l, --load=file\tLoad clipboard from file (flattened BMessage)\n" - " -c, --copy=string\tPuts the given string into the clipboard\n" - " -i, --stdin\t\tLoad clipboard from standard input\n\n" + " -c, --copy=string\tPut the given string on the clipboard\n" + " -i, --stdin\t\tLoad clipboard with string from standard input\n\n" " -r, --clear\t\tRemove all contents from clipboard\n\n"