10f66f451Sopenharmony_ci/* demo_many_options.c - test more than 32 bits worth of option flags 20f66f451Sopenharmony_ci * 30f66f451Sopenharmony_ci * Copyright 2015 Rob Landley <rob@landley.net> 40f66f451Sopenharmony_ci 50f66f451Sopenharmony_ciUSE_DEMO_MANY_OPTIONS(NEWTOY(demo_many_options, "ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba", TOYFLAG_BIN)) 60f66f451Sopenharmony_ci 70f66f451Sopenharmony_ciconfig DEMO_MANY_OPTIONS 80f66f451Sopenharmony_ci bool "demo_many_options" 90f66f451Sopenharmony_ci default n 100f66f451Sopenharmony_ci help 110f66f451Sopenharmony_ci usage: demo_many_options -[a-zA-Z] 120f66f451Sopenharmony_ci 130f66f451Sopenharmony_ci Print the optflags value of the command arguments, in hex. 140f66f451Sopenharmony_ci*/ 150f66f451Sopenharmony_ci 160f66f451Sopenharmony_ci#define FOR_demo_many_options 170f66f451Sopenharmony_ci#include "toys.h" 180f66f451Sopenharmony_ci 190f66f451Sopenharmony_civoid demo_many_options_main(void) 200f66f451Sopenharmony_ci{ 210f66f451Sopenharmony_ci xprintf("optflags=%llx\n", toys.optflags); 220f66f451Sopenharmony_ci} 23