Open muparkkra opened 5 years ago
The -D option can be specified multiple times. But I guess you don't need to know -D things because they are already available as macros, other than you can't tell whether they were set via command line -D or internally, if indeed anyone would ever care. A few aren't really useful because Mup would exit without reading input -l show license and exit -v print version and exit
Some option letters are essentially booleans, others have an argument.
I think we should only internally define macros for those arguments that exist. So user can do like ifdef ARG_M to see if they were set
There are both upper and lower case option letters, but macros are all upper case. So ideas on how to distinguish: ARG_F ARG_CAP_F ARG_F ARG_FF ARG_LF ARG_UF # Lower/Upper LARG_F UARG_F
The -f/-F and -m/-M are sort of equivalent for some purposes, but user can always do if defined(ARG_CAP_F) || defined(ARG_F)
I guess the values would need to be converted to internal format strings with default font/size in first two bytes? Would strcmp ignore those bytes? I guess for the general case, it shouldn't.
Provide a way to access command line arguments from within Mup input.