X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fclient%2Fmain.c;fp=src%2Fclient%2Fmain.c;h=708a5d203199a98318dcb6a8c500a5b9999ccdc0;hb=85da4e5e3106a4b14a9d41d096b5bde7227d379d;hp=c1883b4f14bf86eb619e46edc9b2e52b0361a8bf;hpb=5ecef433e71d124991201bf97feffd45cb23f8ff;p=tpg%2Fopendispense2.git diff --git a/src/client/main.c b/src/client/main.c index c1883b4..708a5d2 100644 --- a/src/client/main.c +++ b/src/client/main.c @@ -251,6 +251,8 @@ int main(int argc, char *argv[]) return 0; case 'c': + if( i > 2 && strcmp(argv[i-1], "type") == 0 ) + goto _default; if( i + 1 >= argc ) { fprintf(stderr, "%s: -c takes an argument\n", argv[0]); ShowUsage(); @@ -347,7 +349,7 @@ int main(int argc, char *argv[]) return RV_ARGUMENTS; } break; - default: + default: _default: // The first argument is not allowed to begin with 'i' // (catches most bad flags) if( giTextArgc == 0 ) {