From bb62ab84fdad6f7cf18ea55d395dfbd7f11ed79d Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Wed, 5 Aug 2015 08:46:28 -0700 Subject: image_loader: force user to specify device * On utility level, force user to use --args=type=foo * In each loader, throw an error if args are ambiguous --- host/include/uhd/image_loader.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/include') diff --git a/host/include/uhd/image_loader.hpp b/host/include/uhd/image_loader.hpp index 8124e7dea..5963c862f 100644 --- a/host/include/uhd/image_loader.hpp +++ b/host/include/uhd/image_loader.hpp @@ -46,8 +46,9 @@ public: * * This function must return true upon the end of a successful image load * or false if no applicable device was found. It may only throw a runtime - * error under one of two conditions: + * error under one of three conditions: * + * * The function finds multiple devices that fit the user's arguments. * * The function has already engaged with a specific device and * something goes wrong. * * The user gives arguments that unambiguously lead to a specific -- cgit v1.2.3