When no FDC ID can be found in the URL field or the FDC ID and the interactive mode is activated (starting program with -i flag) the user will be asked to enter a FDC ID.
When the user enters a non valid id (not parseable to u32), he will be asked again.
When the user enters a valid id, the entered id will be used to query the FDC database. If the request is valid (a food with that id was found), the food will be updated with the FDC id so the user will not be asked in the future.
When the user leaves the field empty and just hits Enter no ID will be set and the food will be skipped.
When no FDC ID can be found in the URL field or the FDC ID and the interactive mode is activated (starting program with
-i
flag) the user will be asked to enter a FDC ID.u32
), he will be asked again.Enter
no ID will be set and the food will be skipped.Closes #6