--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
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
* Distributed under the terms of the MIT license.
|
* Distributed under the terms of the MIT license.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
* jonas.sundstrom@kirilla.com
|
* Jonas Sundström, jonas@kirilla.com
|
||||||
* Axel Dörfler, [email protected].
|
* Axel Dörfler, [email protected].
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -77,11 +77,12 @@ ClipboardApp::ArgvReceived(int32 argc, char **argv)
|
|||||||
};
|
};
|
||||||
|
|
||||||
int c;
|
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) {
|
switch (c) {
|
||||||
case 'l':
|
case 'l':
|
||||||
status = Load(optarg);
|
status = Load(optarg);
|
||||||
break;
|
break;
|
||||||
|
case 's':
|
||||||
case 'o':
|
case 'o':
|
||||||
status = Save(optarg);
|
status = Save(optarg);
|
||||||
break;
|
break;
|
||||||
@@ -131,10 +132,11 @@ void
|
|||||||
ClipboardApp::Usage(void)
|
ClipboardApp::Usage(void)
|
||||||
{
|
{
|
||||||
printf("usage: %s [-olcirpd]\n"
|
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"
|
" -l, --load=file\tLoad clipboard from file (flattened BMessage)\n"
|
||||||
" -c, --copy=string\tPuts the given string into the clipboard\n"
|
" -c, --copy=string\tPut the given string on the clipboard\n"
|
||||||
" -i, --stdin\t\tLoad clipboard from standard input\n\n"
|
" -i, --stdin\t\tLoad clipboard with string from standard input\n\n"
|
||||||
|
|
||||||
" -r, --clear\t\tRemove all contents from clipboard\n\n"
|
" -r, --clear\t\tRemove all contents from clipboard\n\n"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user