config file support is ready
- over.app.ConfigFile can read, create and amend config files - fix over.cmd.format_invocation - add join to over.text.paragraph
This commit is contained in:
parent
17eda81ad2
commit
5b983a3131
6 changed files with 81 additions and 19 deletions
2
test.py
2
test.py
|
@ -30,7 +30,7 @@ def int4(*args):
|
|||
if __name__ == "__main__":
|
||||
main = over.app.Main("new-over-test", version.str, "LICENSE", features={"config_file": True})
|
||||
# name, description, callback, default=Option_sources.none, count=0, overwrite=True, abbr=None, in_cfg_file=True, show_in_help=True
|
||||
main.add_option("boolean-single", "", over.callback.boolean, [False], abbr="1")
|
||||
main.add_option("boolean-single", "ISO 8601 date for a new transfer (valid with +EHMU), defaults to current date. It's also used for relative times with --analysis-timeframe. You can use a day-count relative to today here.", over.callback.boolean, [False], abbr="1")
|
||||
main.add_option("boolean-triple", "", over.callback.booleans, [False, False, False], abbr="3", count=3)
|
||||
main.add_option("str-single", "", str, ["kek"], abbr="s", count=1)
|
||||
main.add_option("str-quad", "", noop, ["ze", "kek", "is", "bek"], abbr="4", count=4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue