1 /* test_many_options.c - test more than 32 bits worth of option flags
2 *
3 * Copyright 2015 Rob Landley <rob@landley.net>
4
5 USE_TEST_MANY_OPTIONS(NEWTOY(test_many_options, "ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba", TOYFLAG_USR|TOYFLAG_BIN))
6
7 config TEST_MANY_OPTIONS
8 bool "test_many_options"
9 default n
10 help
11 usage: test_many_options -[a-zA-Z]
12
13 Print the optflags value of the command arguments, in hex.
14 */
15
16 #define FOR_test_many_options
17 #include "toys.h"
18
test_many_options_main(void)19 void test_many_options_main(void)
20 {
21 xprintf("optflags=%llx\n", toys.optflags);
22 }
23