--url must have a value if provided, --countmay have a value if provided, and --verbose should not have a value if provided.
ABBREV
This is probably more of a toy that really useful tool, but in case you need it, it’s there.
Wow, I’ve wanted a simple way to implement unambiguous abbreviation for commands for ages! Just about the only thing I liked about Cisco IOS was being able to type the unambiguous prefix of any command. It’s like tab complete except you don’t have to hit tab!
*dbm was very popular in Perl in the age of CGI scripts and guestbooks. Pstore’s Python counterpart, shelve, is quite popular too.
When I first learned Ruby, I was surprised with extensive linear algebra features in standard library (Matrix and Vector classes), however it does not support sparsity and not sure about performance and memory consumption, especially compared to Numpy.
The required / optional is referring to the value after the flag. So with the author’s setup:
--urlmust have a value if provided,--countmay have a value if provided, and--verboseshould not have a value if provided.Wow, I’ve wanted a simple way to implement unambiguous abbreviation for commands for ages! Just about the only thing I liked about Cisco IOS was being able to type the unambiguous prefix of any command. It’s like tab complete except you don’t have to hit tab!
*dbmwas very popular in Perl in the age of CGI scripts and guestbooks.Pstore’s Python counterpart,shelve, is quite popular too.When I first learned Ruby, I was surprised with extensive linear algebra features in standard library (
MatrixandVectorclasses), however it does not support sparsity and not sure about performance and memory consumption, especially compared to Numpy.