added conditionals ENABLE_STATIC and ENABLE_SHARED
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
6
main.go
6
main.go
@ -81,8 +81,10 @@ func handle_arguments(param *Param) error {
|
||||
return fmt.Errorf("command line error - %s", err.Error())
|
||||
}
|
||||
|
||||
if fs.NArg() != 1 {
|
||||
return fmt.Errorf("no input file or too many input files specified")
|
||||
if fs.NArg() < 1 {
|
||||
return fmt.Errorf("no input file specified")
|
||||
} else if fs.NArg() > 1 {
|
||||
return fmt.Errorf("too many input files specified")
|
||||
}
|
||||
|
||||
param.input_file = fs.Arg(0);
|
||||
|
Reference in New Issue
Block a user