add lang flag and update documentation

This commit is contained in:
nytpu
2021-05-11 11:15:50 -06:00
parent c7148446a8
commit 244746dff7
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -60,6 +60,13 @@ command-specific flags that are not universally recognized.
Set the data directory where comitium will store its files. See *FILES AND Set the data directory where comitium will store its files. See *FILES AND
DIRECTORIES* for more information. DIRECTORIES* for more information.
*-l* _LANG_, *--lang* _LANG_
The language that comitium will use when outputting its files. Can be a
comma-separated list of language tags, comitium will use the first avalable.
Overrides the $*LANG* environment variable. See
<https://git.nytpu.com/comitium/about/doc/translating.md> for available
options. Defaults to en-US.
## REFRESH FLAGS ## REFRESH FLAGS
*-n* _NUM_, *--num-workers* _NUM_ *-n* _NUM_, *--num-workers* _NUM_
@@ -91,6 +98,9 @@ command-specific flags that are not universally recognized.
*COMITIUM_DATA* *COMITIUM_DATA*
Set the data directory. Equivalent to the *--data* flag. Set the data directory. Equivalent to the *--data* flag.
*LANG*
Set the language comitium will output.
# FILES AND DIRECTORIES # FILES AND DIRECTORIES
## DATA DIRECTORY ## DATA DIRECTORY
+1
View File
@@ -11,6 +11,7 @@ var (
globalFs = flag.NewFlagSet("global", flag.ContinueOnError) globalFs = flag.NewFlagSet("global", flag.ContinueOnError)
dataFlag = globalFs.StringP("data", "d", "", "The data directory where comitium will store its files") dataFlag = globalFs.StringP("data", "d", "", "The data directory where comitium will store its files")
langFlag = globalFs.StringP("lang", "l", "en-US", "The language that comitium will use when outputting its files")
) )
// command holds fields used for printing information about a command. // command holds fields used for printing information about a command.