check -m option
This commit is contained in:
parent
c64733ae6f
commit
e9d214e977
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ vieuwargs(argc,argv) char **argv ; {
|
||||||
switch ( argp[1] ) {
|
switch ( argp[1] ) {
|
||||||
case 'm': if ( machine ) fuerror("Two machines?") ;
|
case 'm': if ( machine ) fuerror("Two machines?") ;
|
||||||
machine= &argp[2];
|
machine= &argp[2];
|
||||||
|
if (*machine == '\0') {
|
||||||
|
fuerror("-m needs machine name");
|
||||||
|
}
|
||||||
eaten=1 ;
|
eaten=1 ;
|
||||||
break ;
|
break ;
|
||||||
case 'o': if ( nextarg>=argc ) {
|
case 'o': if ( nextarg>=argc ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue