projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added test of -nosequence to test-pick.
[mmh]
/
uip
/
pick.c
diff --git
a/uip/pick.c
b/uip/pick.c
index
bd17c45
..
6f450af
100644
(file)
--- a/
uip/pick.c
+++ b/
uip/pick.c
@@
-45,21
+45,23
@@
static struct swit switches[] = {
{ "datefield field", 5 },
#define SEQSW 15
{ "sequence name", 0 },
{ "datefield field", 5 },
#define SEQSW 15
{ "sequence name", 0 },
-#define PUBLSW 16
+#define NSEQSW 16
+ { "nosequence", 0 },
+#define PUBLSW 17
{ "public", 0 },
{ "public", 0 },
-#define NPUBLSW 17
+#define NPUBLSW 18
{ "nopublic", 0 },
{ "nopublic", 0 },
-#define ZEROSW 18
+#define ZEROSW 19
{ "zero", 0 },
{ "zero", 0 },
-#define NZEROSW 19
+#define NZEROSW 20
{ "nozero", 0 },
{ "nozero", 0 },
-#define LISTSW 20
+#define LISTSW 21
{ "list", 0 },
{ "list", 0 },
-#define NLISTSW 21
+#define NLISTSW 22
{ "nolist", 0 },
{ "nolist", 0 },
-#define VERSIONSW 22
+#define VERSIONSW 23
{ "version", 0 },
{ "version", 0 },
-#define HELPSW 23
+#define HELPSW 24
{ "help", 0 },
{ NULL, 0 }
};
{ "help", 0 },
{ NULL, 0 }
};
@@
-113,11
+115,11
@@
main (int argc, char **argv)
invo_name);
print_help (buf, switches, 1);
listsw = 0; /* HACK */
invo_name);
print_help (buf, switches, 1);
listsw = 0; /* HACK */
- done (1);
+ done (0);
case VERSIONSW:
print_version(invo_name);
listsw = 0; /* HACK */
case VERSIONSW:
print_version(invo_name);
listsw = 0; /* HACK */
- done (1);
+ done (0);
case CCSW:
case DATESW:
case CCSW:
case DATESW:
@@
-158,6
+160,9
@@
main (int argc, char **argv)
seqs[seqp++] = cp;
continue;
seqs[seqp++] = cp;
continue;
+ case NSEQSW:
+ seqp = 0;
+ continue;
case PUBLSW:
publicsw = 1;
continue;
case PUBLSW:
publicsw = 1;
continue;