diff options
author | bptato <nincsnevem662@gmail.com> | 2023-10-27 00:01:52 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-10-27 00:03:05 +0200 |
commit | 6efa186973b01cfaea0e3f6a5bbfca1a2cdd7f66 (patch) | |
tree | 5beb23b567f4d851cac1db89f8474c6346d77ef4 /doc | |
parent | 2f627f0d7aaf3dd0c44ef3aeb30ec33948a2786d (diff) | |
download | chawan-6efa186973b01cfaea0e3f6a5bbfca1a2cdd7f66.tar.gz |
Add -C option
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cha.1 | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/doc/cha.1 b/doc/cha.1 index fdda5fdc..ba5ffe47 100644 --- a/doc/cha.1 +++ b/doc/cha.1 @@ -35,11 +35,18 @@ provided, each letter is parsed as a separate short form. \fB\-\-abcd\fR.) .TP +\fB\-c, \-\-css\fR \fIstylesheet\fR +Temporarily modify the user stylesheet. If a user stylesheet is already +being used, the stylesheet given is appended to that. +.TP \fB\-d, \-\-dump\fR Start in headless mode, and sequentially print the opened files to stdout. This option is implicitly enabled if stdout is not a tty (e.g. when piping \fIcha\fR output). .TP +\fB\-h, \-\-help\fR +Print a short version of this page, then exit. +.TP \fB\-o, \-\-opt\fR \fIconfig\fR Override configuration options. This accepts the configuration format is described in \fBcha-config\fR(5), in other words the passed string must be @@ -50,14 +57,23 @@ parameters, unrecognized bare keywords are converted to strings. So this works: \fB--opt\fR abcd.option-name=\fIoption-value\fR. However, symbols must still be quoted.) .TP -\fB\-c, \-\-css\fR \fIstylesheet\fR -Temporarily modify the user stylesheet. If a user stylesheet is already -being used, the stylesheet given is appended to that. +\fB\-r, \-\-run\fR \fIscript\fR/\fIfile\fR +Execute the string provided as a JS script, or execute the supplied JS +file. If the file ends in .mjs, it is executed as an ES module. +.br +(To execute an inline script as a module, the following hack can be used: +.br +\fIcha \fB-r \fR'await new Promise(x => setTimeout(x, 1000)); +console.log("hello from ESM!"); //.mjs' +.br +In other words, we add a comment \fI//.mjs\fR to the end of the script.) .TP -\fB\-T, \-\-type\fR \fIcontent-type\fR -Override the content type of all input files. Useful when the content type -cannot be guessed from the file extension, or when reading a non-plaintext -file from stdin. +\fB\-v, \-\-version\fR +Print information about the browser's version, then exit. +.TP +\fB\-C, \-\-config\fR \fIfile\fR +Override the default configuration search path. Both absolute and relative +paths are allowed. .TP \fB\-I, \-\-input-charset\fR \fIcharset\fR Override the character set of all input files. Useful when Chawan is @@ -65,34 +81,22 @@ incorrectly recognizing the input character set. (Note: if this happens often, consider changing the default input charset recognition list \fIencoding.document-charset\fR in the configuration.) .TP +\fB\-M, \-\-monochrome\fR +Override the output character set. This is a shortcut for +\fB\-o display.color\-mode=\fImonochrome\fR. +.TP \fB\-O, \-\-output-charset\fR \fIcharset\fR Override the output character set. This is a shortcut for \fB\-o encoding.display\-charset=\fIcharset\fR. .TP -\fB\-M, \-\-monochrome\fR -Override the output character set. This is a shortcut for -\fB\-o display.color\-mode=\fImonochrome\fR. +\fB\-T, \-\-type\fR \fIcontent-type\fR +Override the content type of all input files. Useful when the content type +cannot be guessed from the file extension, or when reading a non-plaintext +file from stdin. .TP \fB\-V, \-\-visual\fR Start in visual mode: the page specified in \fIstart.visual-home\fR is opened. .TP -\fB\-r, \-\-run\fR \fIscript\fR/\fIfile\fR -Execute the string provided as a JS script, or execute the supplied JS -file. If the file ends in .mjs, it is executed as an ES module. -.br -(To execute an inline script as a module, the following hack can be used: -.br -\fIcha \fB-r \fR'await new Promise(x => setTimeout(x, 1000)); -console.log("hello from ESM!"); //.mjs' -.br -In other words, we add a comment \fI//.mjs\fR to the end of the script.) -.TP -\fB\-h, \-\-help\fR -Print a short version of this page, then exit. -.TP -\fB\-v, \-\-version\fR -Print information about the browser's version, then exit. -.TP \fB\-\-\fP Interpret all following arguments as files. (e.g. if you have a file named \fI\-o\fR, open it as \fIcha \fB--\fR \fI-o\fR. |