The -fi option is deprecated for wgrib2 v2.0.9+.
The -endif option is tne new way to close
an IF block (wgrib2 v2.0.9).
Prior to wgrib2 v2.0.9, IF blocks were terminated by an output option.
The -fi option was a no operation output option.
With wgrib2 v2.0.9, IF blocks were implemented properly. The IF blocks
could be nested, and else and elseif and endif type options were added.