Command line long options
Created by: Veratil
I believe using --option to denote a multi-character option would be more synonymous to current standards seen everywhere rather than the -option currently.
Added benefit would be the ability to use single character options for reduced typing, such as -h instead of -help. Many people will start by typing either -h or --help (like I did) only to see it not actually print help, but an error for invalid command line option.
- -h, --help
- -v, --verbose (Aside: Could use verbosity levels, more verbose with more v's, -vvv)
- --patterns (Since this does a specific function just long option)
- -i, --repl (or --interactive)
- --info (It looks like this just outputs installation information, so no single option I think is needed)
- -o, --encode (-o for output)
- -s, --wholefile (I suggest -s for 'single string', and possible rename this long option)
- -a, --all (This could be renamed, or possibly combined with verbose)
- -e, --eval (I realize this conflicts with -e, but I haven't gotten this to do what it says it does yet anyway)
- -g, --grep
- -m, --manifest
- -f, --load (Suggested long option from description of functionality. If using load as long option, change to -l)
- -e, --rpl (Suggested long option from description of functionality. If using rpl as long option, change to -r. Also, will have to be changed from conflict with eval's -e)
On a somewhat similar but separate note, much of the command line option parsing could be removed in favor of lua-getopt or, what I'd suggest to help with the above, argparse.