mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-13 01:20:24 +02:00
formatting
This commit is contained in:
@ -291,8 +291,8 @@ _jc() {
|
|||||||
)
|
)
|
||||||
jc_options=(--force-color -C --debug -d --monochrome -m --meta-out -M --pretty -p --quiet -q --raw -r --unbuffer -u --yaml-out -y)
|
jc_options=(--force-color -C --debug -d --monochrome -m --meta-out -M --pretty -p --quiet -q --raw -r --unbuffer -u --yaml-out -y)
|
||||||
jc_options_describe=(
|
jc_options_describe=(
|
||||||
'--force-color:force color output even when using pipes (overrides -m)'
|
'--force-color:force color output (overrides -m)'
|
||||||
'-C:force color output even when using pipes (overrides -m)'
|
'-C:force color output (overrides -m)'
|
||||||
'--debug:debug (double for verbose debug)'
|
'--debug:debug (double for verbose debug)'
|
||||||
'-d:debug (double for verbose debug)'
|
'-d:debug (double for verbose debug)'
|
||||||
'--monochrome:monochrome output'
|
'--monochrome:monochrome output'
|
||||||
@ -323,8 +323,8 @@ _jc() {
|
|||||||
'-y:YAML output'
|
'-y:YAML output'
|
||||||
'--monochrome:monochrome output'
|
'--monochrome:monochrome output'
|
||||||
'-m:monochrome output'
|
'-m:monochrome output'
|
||||||
'--force-color:force color output even when using pipes (overrides -m)'
|
'--force-color:force color output (overrides -m)'
|
||||||
'-C:force color output even when using pipes (overrides -m)'
|
'-C:force color output (overrides -m)'
|
||||||
)
|
)
|
||||||
jc_help_options=(--help -h)
|
jc_help_options=(--help -h)
|
||||||
jc_help_options_describe=(
|
jc_help_options_describe=(
|
||||||
|
@ -283,7 +283,7 @@ class JcCli():
|
|||||||
otherwise the general help text is printed.
|
otherwise the general help text is printed.
|
||||||
"""
|
"""
|
||||||
self.indent = 4
|
self.indent = 4
|
||||||
self.pad = 20
|
self.pad = 22
|
||||||
|
|
||||||
if self.show_categories:
|
if self.show_categories:
|
||||||
utils._safe_print(self.parser_categories_text())
|
utils._safe_print(self.parser_categories_text())
|
||||||
|
@ -3,7 +3,7 @@ from typing import List, Dict
|
|||||||
|
|
||||||
long_options_map: Dict[str, List[str]] = {
|
long_options_map: Dict[str, List[str]] = {
|
||||||
'--about': ['a', 'about jc'],
|
'--about': ['a', 'about jc'],
|
||||||
'--force-color': ['C', 'force color output even when using pipes (overrides -m)'],
|
'--force-color': ['C', 'force color output (overrides -m)'],
|
||||||
'--debug': ['d', 'debug (double for verbose debug)'],
|
'--debug': ['d', 'debug (double for verbose debug)'],
|
||||||
'--help': ['h', 'help (--help --parser_name for parser documentation)'],
|
'--help': ['h', 'help (--help --parser_name for parser documentation)'],
|
||||||
'--monochrome': ['m', 'monochrome output'],
|
'--monochrome': ['m', 'monochrome output'],
|
||||||
@ -92,6 +92,6 @@ Examples:
|
|||||||
$ jc --help --dig
|
$ jc --help --dig
|
||||||
|
|
||||||
More Help:
|
More Help:
|
||||||
$ jc -hh # show hidden parsers
|
$ jc -hh # show hidden parsers
|
||||||
$ jc -hhh # list parsers by category
|
$ jc -hhh # list parsers by category tags
|
||||||
'''
|
'''
|
Reference in New Issue
Block a user