From 629a06b0ae20f93448881c2e534703e067f997c3 Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 5 Nov 2020 11:44:34 +0000 Subject: nexus: Add error if device not specified Signed-off-by: David Shah --- nexus/main.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nexus') diff --git a/nexus/main.cc b/nexus/main.cc index 5b0ba94c..495793a3 100644 --- a/nexus/main.cc +++ b/nexus/main.cc @@ -67,6 +67,9 @@ void NexusCommandHandler::customBitstream(Context *ctx) std::unique_ptr NexusCommandHandler::createContext(std::unordered_map &values) { ArchArgs chipArgs; + if (!vm.count("device")) { + log_error("device must be specified on the command line (e.g. --device LIFCL-40-9BG400CES)\n"); + } chipArgs.device = vm["device"].as(); return std::unique_ptr(new Context(chipArgs)); } -- cgit v1.2.3