constants.odin 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package flags
  2. import "core:time"
  3. // Set to true to compile with support for core named types disabled, as a
  4. // fallback in the event your platform does not support one of the types, or
  5. // you have no need for them and want a smaller binary.
  6. NO_CORE_NAMED_TYPES :: #config(ODIN_CORE_FLAGS_NO_CORE_NAMED_TYPES, false)
  7. // Override support for parsing `time` types.
  8. IMPORTING_TIME :: #config(ODIN_CORE_FLAGS_USE_TIME, time.IS_SUPPORTED)
  9. // Override support for parsing `net` types.
  10. // TODO: Update this when the BSDs are supported.
  11. IMPORTING_NET :: #config(ODIN_CORE_FLAGS_USE_NET, ODIN_OS == .Windows || ODIN_OS == .Linux || ODIN_OS == .Darwin || ODIN_OS == .FreeBSD)
  12. TAG_ARGS :: "args"
  13. SUBTAG_NAME :: "name"
  14. SUBTAG_POS :: "pos"
  15. SUBTAG_REQUIRED :: "required"
  16. SUBTAG_HIDDEN :: "hidden"
  17. SUBTAG_VARIADIC :: "variadic"
  18. SUBTAG_FILE :: "file"
  19. SUBTAG_PERMS :: "perms"
  20. SUBTAG_INDISTINCT :: "indistinct"
  21. TAG_USAGE :: "usage"
  22. UNDOCUMENTED_FLAG :: "<This flag has not been documented yet.>"
  23. INTERNAL_VARIADIC_FLAG :: "varg"
  24. RESERVED_HELP_FLAG :: "help"
  25. RESERVED_HELP_FLAG_SHORT :: "h"
  26. // If there are more than this number of flags in total, only the required and
  27. // positional flags will be shown in the one-line usage summary.
  28. ONE_LINE_FLAG_CUTOFF_COUNT :: 16