aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-18 21:24:09 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-18 21:24:15 +0200
commit00dd8fe3d265a2c210b24add1593e3328c58ab25 (patch)
tree95947eb097d9e119c3459aa7b19112ad1139cf4e /src/test.c
parentissue 4, java version (diff)
downloadargparser-00dd8fe3d265a2c210b24add1593e3328c58ab25.tar.gz
argparser-00dd8fe3d265a2c210b24add1593e3328c58ab25.tar.bz2
argparser-00dd8fe3d265a2c210b24add1593e3328c58ab25.tar.xz
Half of the work for issue 4, c version
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test.c b/src/test.c
index c02c80c..0dbb420 100644
--- a/src/test.c
+++ b/src/test.c
@@ -43,12 +43,12 @@ int main(int argc, char** argv)
"You should have received a copy of the GNU Affero General Public License\n"
"along with this library. If not, see <http://www.gnu.org/licenses/>.", 0, 1, 0);
- args_add_option(args_new_argumentless(1, "-h", "-?", "--help", NULL), "Prints this help message\n(and exits)");
- args_add_option(args_new_argumentless(0, "--hello", NULL), "Prints the text: hello world");
- args_add_option(args_new_argumentless(0, "++hidden", NULL), 0);
+ args_add_option(args_new_argumentless(NULL, 1, "-h", "-?", "--help", NULL), "Prints this help message\n(and exits)");
+ args_add_option(args_new_argumentless(NULL, 0, "--hello", NULL), "Prints the text: hello world");
+ args_add_option(args_new_argumentless(NULL, 0, "++hidden", NULL), 0);
- args_add_option(args_new_argumented("LINE", 0, "-l", "--line", NULL), "Prints the choosen line");
- args_add_option(args_new_variadic("LINE", 0, "--l", "--lines", NULL), "Prints the choosen lines");
+ args_add_option(args_new_argumented(NULL, "LINE", 0, "-l", "--line", NULL), "Prints the choosen line");
+ args_add_option(args_new_variadic(NULL, "LINE", 0, "--l", "--lines", NULL), "Prints the choosen lines");
args_parse(argc, argv);
args_support_alternatives();