summaryrefslogtreecommitdiffstats
path: root/arg_parser.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2017-05-07 15:52:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2017-05-07 15:52:21 +0000
commitf66fabc4c5e5085c110f7cdae627d7ca042386cf (patch)
tree782562a0be58fe11c10fb05658233ae51cce9b7c /arg_parser.h
parentAdding upstream version 1.18. (diff)
downloadlziprecover-f66fabc4c5e5085c110f7cdae627d7ca042386cf.tar.xz
lziprecover-f66fabc4c5e5085c110f7cdae627d7ca042386cf.zip
Adding upstream version 1.19.upstream/1.19
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'arg_parser.h')
-rw-r--r--arg_parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arg_parser.h b/arg_parser.h
index f45b9ac..95b0320 100644
--- a/arg_parser.h
+++ b/arg_parser.h
@@ -1,5 +1,5 @@
/* Arg_parser - POSIX/GNU command line argument parser. (C++ version)
- Copyright (C) 2006-2016 Antonio Diaz Diaz.
+ Copyright (C) 2006-2017 Antonio Diaz Diaz.
This library is free software. Redistribution and use in source and
binary forms, with or without modification, are permitted provided
@@ -57,7 +57,8 @@ private:
{
int code;
std::string argument;
- explicit Record( const int c = 0 ) : code( c ) {}
+ explicit Record( const int c ) : code( c ) {}
+ explicit Record( const char * const arg ) : code( 0 ), argument( arg ) {}
};
std::string error_;