added conditionals ENABLE_STATIC and ENABLE_SHARED
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-07 12:54:16 +09:00
parent a5d13e17e5
commit 4a6da0b386
5 changed files with 55 additions and 6 deletions

View File

@ -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);