mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-06 00:16:13 +02:00
make format
This commit is contained in:
parent
5fe6caf805
commit
c4b3d51181
4 changed files with 31 additions and 18 deletions
|
@ -316,7 +316,10 @@ def parse_args(args=[]):
|
|||
help=argparse.SUPPRESS,
|
||||
)
|
||||
|
||||
overrides = parser.add_argument_group("Config file overrides",textwrap.dedent('These are one-off overrides of the config file options'))
|
||||
overrides = parser.add_argument_group(
|
||||
"Config file overrides",
|
||||
textwrap.dedent("These are one-off overrides of the config file options"),
|
||||
)
|
||||
overrides.add_argument(
|
||||
"--override",
|
||||
dest="config_override",
|
||||
|
@ -331,7 +334,7 @@ def parse_args(args=[]):
|
|||
For example, to use a different editor for this jrnl entry, call:
|
||||
jrnl --override '{"editor": "nano"}'
|
||||
|
||||
"""
|
||||
""",
|
||||
)
|
||||
|
||||
# Handle '-123' as a shortcut for '-n 123'
|
||||
|
|
|
@ -51,9 +51,9 @@ def run(args):
|
|||
|
||||
# Apply config overrides
|
||||
overrides = args.config_override
|
||||
#TODO: substitute overriden KV pairs in config dict ONLY AFTER ADDING TESTS
|
||||
for k in overrides:
|
||||
logging.debug("Overriding %s from %s to %s"%(k,config[k],overrides[k]))
|
||||
# TODO: substitute overriden KV pairs in config dict ONLY AFTER ADDING TESTS
|
||||
for k in overrides:
|
||||
logging.debug("Overriding %s from %s to %s" % (k, config[k], overrides[k]))
|
||||
config[k] = overrides[k]
|
||||
# --- All the standalone commands are now done --- #
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue