add lang flag and update documentation
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user