summaryrefslogtreecommitdiff
path: root/src/args.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/args.hh')
-rw-r--r--src/args.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/args.hh b/src/args.hh
index 75c31b1..2436696 100644
--- a/src/args.hh
+++ b/src/args.hh
@@ -16,7 +16,7 @@ class Args {
public:
virtual ~Option() = default;
- virtual bool is_set() const = 0;
+ [[nodiscard]] virtual bool is_set() const = 0;
protected:
Option() = default;
@@ -26,8 +26,8 @@ class Args {
class OptionArgument : public Option {
public:
- virtual bool has_argument() const = 0;
- virtual const std::string& argument() const = 0;
+ [[nodiscard]] virtual bool has_argument() const = 0;
+ [[nodiscard]] virtual const std::string& argument() const = 0;
};
static std::unique_ptr<Args> create(std::string prgname = std::string());