Created
November 27, 2024 15:12
-
-
Save fvsch/b1324fde7d50e6a92fc11a7c4a88cd3c to your computer and use it in GitHub Desktop.
Documenting boolean CLI options and --no-* variants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPTIONS | |
--help Display this message | |
--version Display current version | |
-h, --host Bind to a specific host (default: '::') | |
-p, --port Bind to a specific port or ports (default: '8080+') | |
--header Add custom HTTP header(s) to responses | |
--cors Send CORS HTTP headers in responses (default: 'false') | |
--gzip Use gzip compression for text files (default: 'true') | |
--ext Extensions which can be omitted in URLs (default: '.html') | |
--dir-file Directory index file(s) (default: 'index.html') | |
--dir-list Allow listing directory contents (default: 'true') | |
--exclude Block access to folders and files by pattern | |
(default: '.*, !.well-known') | |
USAGE | |
servitsy [directory] [options] | |
servitsy build/public --cors --ext .htm --dir-list=false --dir-file='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPTIONS | |
--help Display this message | |
--version Display current version | |
-h, --host Bind to a specific host (default: '::') | |
-p, --port Bind to a specific port or ports (default: '8080+') | |
--header Add custom HTTP header(s) to responses | |
--cors Send CORS HTTP headers in responses | |
--no-gzip Disable gzip compression for text files | |
--ext Extensions to look for when resolving files (default: '.html') | |
--no-ext Disable looking for file extensions | |
--dir-file Directory index file(s) (default: 'index.html') | |
--no-dir-file Disable looking for directory index files | |
--no-dir-list Disable listing directory contents | |
--exclude Block access to folders and files by pattern | |
(default: '.*, !.well-known') | |
--no-exclude Do not block access to folders and files by pattern | |
USAGE | |
servitsy [directory] [options] | |
servitsy build/public --cors --ext .htm --no-dir-list --no-dir-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPTIONS | |
--help Display this message | |
--version Display current version | |
-h, --host Bind to a specific host (default: '::') | |
-p, --port Bind to a specific port or ports (default: '8080+') | |
--header Add custom HTTP header(s) to responses | |
--cors Send CORS HTTP headers in responses | |
--ext Extensions to look for when resolving files (default: '.html') | |
--dir-file Directory index file(s) (default: 'index.html') | |
--exclude Block access to folders and files by pattern | |
(default: '.*, !.well-known') | |
--no-gzip Disable gzip compression for text files | |
--no-ext Disable looking for file extensions | |
--no-dir-file Disable looking for directory index files | |
--no-dir-list Disable listing directory contents | |
--no-exclude Do not block access to folders and files by pattern | |
USAGE | |
servitsy [directory] [options] | |
servitsy build/public --cors --ext .htm --no-dir-list --no-dir-file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment