diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-07-02 14:36:37 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-07-02 14:36:37 +0200 |
commit | 0eeeb016b7c059eb1d77b015b7486a96b544df9f (patch) | |
tree | ef1ce16afd01b6d8b6f3dc27821fbf3bbc672415 /src/test.c | |
parent | fix make (diff) | |
download | argparser-0eeeb016b7c059eb1d77b015b7486a96b544df9f.tar.gz argparser-0eeeb016b7c059eb1d77b015b7486a96b544df9f.tar.bz2 argparser-0eeeb016b7c059eb1d77b015b7486a96b544df9f.tar.xz |
misc fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -43,12 +43,12 @@ int main(int argc, char** argv) "You should have received a copy of the GNU General Public License\n" "along with this library. If not, see <http://www.gnu.org/licenses/>.", 0, 1); - args_add_option(args_new_argumentless(0, "-h", "-?", "--help"), "Prints this help message\n(and exits)"); - args_add_option(args_new_argumentless(0, "--hello"), "Prints the text: hello world'"); - args_add_option(args_new_argumentless(0, "++hidden"), 0); + args_add_option(args_new_argumentless(0, "-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_argumented("LINE", 0, "-l", "--line"), "Prints the choosen line"); - args_add_option(args_new_variadic("LINE", 0, "--l", "--lines"), "Prints the choosen lines"); + 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_parse(argc, argv); args_support_alternatives(); |