Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanhed committed Dec 17, 2023
1 parent 973470b commit 07ab968
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/mijnbib/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,19 @@ def main():
parser = argparse.ArgumentParser(
prog="mijnbib",
formatter_class=argparse.RawDescriptionHelpFormatter,
description="Interact with bibliotheek.be website, e.g. to retrieve loans, "
"reservations or accounts.\n\n"
"Specify the required authentication parameters (username, password, ...) \n"
"as a parameter of the subcommando. See the help of a subcommando for all \n"
"parameters, e.g. `mijnbib --help all`\n"
"More convenient is creating a `mijnbib.ini` file containing the parameters:\n"
" [DEFAULT]\n"
" username = john\n"
" password = 123456\n"
" city = gent\n"
" accountid = 456",
description=(
"Interact with bibliotheek.be website, e.g. to retrieve loans, "
"reservations or accounts.\n\n"
"Specify the required authentication parameters (username, password, ...) \n"
"as a parameter of the subcommando. See the help of a subcommando for all \n"
"parameters, e.g. `mijnbib --help all`\n"
"More convenient is creating a `mijnbib.ini` file containing the parameters:\n"
" [DEFAULT]\n"
" username = john\n"
" password = 123456\n"
" city = gent\n"
" accountid = 456"
),
)
parser.add_argument("-v", "--verbose", action="store_true", help="Show debug logging")
subparsers = parser.add_subparsers(required=True)
Expand Down

0 comments on commit 07ab968

Please sign in to comment.