diff options
Diffstat (limited to 'src/option.h')
-rw-r--r-- | src/option.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/option.h b/src/option.h index 787d34ae..639f049b 100644 --- a/src/option.h +++ b/src/option.h @@ -106,7 +106,8 @@ public: string& str() { assert(handled); - assert(value); + if (! value) + throw_(std::runtime_error, "No argument provided for " << desc()); return value.as_string_lval(); } |