[Refdb-cvs] CVS: refdb/src refdbc.c,1.59,1.60
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mho...@us...> - 2003-12-24 21:42:52
|
Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1:/tmp/cvs-serv25877
Modified Files:
refdbc.c
Log Message:
fixed addlink argument handling and help output
Index: refdbc.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbc.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -U2 -r1.59 -r1.60
--- refdbc.c 17 Dec 2003 00:09:32 -0000 1.59
+++ refdbc.c 24 Dec 2003 21:42:47 -0000 1.60
@@ -4757,20 +4757,19 @@
db[_POSIX_PATH_MAX-1] = '\0'; /* terminate in case string got truncated */
break;
- case 'f':
- /* printf("-f %s\n", optarg); */
- if (!strcmp(optarg, "stdin")) {
- n_read_stdin = 1;
- }
- else {
- infile = canonicalize_path(optarg);
- if (insert_lilimem(&sentinel, (void**)&infile, NULL)) {
- delete_all_lilimem(&sentinel);
- return 1;
- }
- n_read_file = 1;
- }
- break;
+/* case 'f': */
+/* if (!strcmp(optarg, "stdin")) { */
+/* n_read_stdin = 1; */
+/* } */
+/* else { */
+/* infile = canonicalize_path(optarg); */
+/* if (insert_lilimem(&sentinel, (void**)&infile, NULL)) { */
+/* delete_all_lilimem(&sentinel); */
+/* return 1; */
+/* } */
+/* n_read_file = 1; */
+/* } */
+/* break; */
case 'h':
- printf("Displays the result of a database search for notes.\nSyntax: getnote [-c command] [-d database] [-h] [-o outfile] [-O outfile][-P] [-R pdfroot] [-s format] [-S tag] [-t output-format] {search-string|-f infile}\nSearch-string: {:XY:{<|=|!=|>}{unix-regexp}} [AND|OR|AND NOT] [...]\nwhere XY specifies the field to search in\nOptions: -c command pipe the output through command\n -d database specify the database to work with\n -h prints this mini-help\n -o outfile save the output in outfile (overwrite)\n -O outfile append the output to outfile\n -P limit search to personal interest list\n -R use pdfroot as root for path of pdf files\n -s format specify fields for screen or style for DocBook output\n -S tag sort output by tag ID (default) or PY\n -t output-format display as format scrn, html, db31, teix, ris, or bibtex\n -f infile use the saved search line in file infile\n All other arguments are interpreted as the search string.\n");
+ printf("Links an existing note to one or more references, keywords, periodicals, or authors.\nSyntax: addlink [-c command] [-d database] [-h] [-o outfile] [-O outfile][-r] :NID:|:NCK: :XY:=value [:XY:=value1...]\nNID or NCK specify a note by its ID or key, respectively\nXY is one of ID, CK (reference by ID or citekey), KW (keyword), JO|JF|J1|J2 (periodical abbreviated|full|user1|user2), AU (author name)\nOptions: -c command pipe the output through command\n -d database specify the database to work with\n -h prints this mini-help\n -o outfile save the output in outfile (overwrite)\n -O outfile append the output to outfile\n -r remove specified links\n");
delete_all_lilimem(&sentinel);
return 0;
@@ -4802,4 +4801,5 @@
case 'e':
case 'E':
+ case 'f':
case 'F':
case 'g':
|