demo_many_options.c 551 B

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