Skip to content

Commit

Permalink
refine help titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Jun 25, 2021
1 parent 0707604 commit ec08be9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion avendesora/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

# Utilities {{{1
def title(text):
return full_stop(title_case(text))
return title_case(text)


# Command base class {{{1
Expand Down
2 changes: 1 addition & 1 deletion avendesora/shlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _use_log(log):

# Preferences {{{1
def set_prefs(**kwargs):
"""Set ShLib preferences
"""Set shlib preferences
Args:
use_inform (bool):
Expand Down
42 changes: 21 additions & 21 deletions tests/test_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_add():
except OSError as err:
result = os_error(err)
expected = dedent("""
Add a new account.
Add a New Account
Usage:
avendesora add [options] [<template>]
Expand Down Expand Up @@ -69,7 +69,7 @@ def test_archive():
except OSError as err:
result = os_error(err)
expected = dedent("""
Generates archive of all account information.
Generates Archive of All Account Information
Usage:
avendesora archive
Expand Down Expand Up @@ -103,7 +103,7 @@ def test_browse():
except OSError as err:
result = os_error(err)
expected = dedent("""
Open account URL in web browser.
Open Account URL in Web Browser
Usage:
avendesora browse [options] <account> [<key>]
Expand Down Expand Up @@ -156,7 +156,7 @@ def test_changed():
except OSError as err:
result = os_error(err)
expected = dedent("""
Show changes since archive was created.
Show Changes Since Archive Was Created
Usage:
avendesora changed
Expand Down Expand Up @@ -247,7 +247,7 @@ def test_conceal():
except OSError as err:
result = os_error(err)
expected = dedent("""
Conceal text by encoding it.
Conceal Text by Encoding It
Usage:
avendesora conceal [options] [<text>]
Expand Down Expand Up @@ -296,7 +296,7 @@ def test_credentials():
except OSError as err:
result = os_error(err)
expected = dedent("""
Show login credentials.
Show Login Credentials
Displays the account's login credentials, which generally consist of an
identifier and a secret.
Expand Down Expand Up @@ -332,7 +332,7 @@ def test_edit():
except OSError as err:
result = os_error(err)
expected = dedent("""
Edit an account.
Edit an Account
Usage:
avendesora edit <account>
Expand All @@ -351,7 +351,7 @@ def test_find():
except OSError as err:
result = os_error(err)
expected = dedent("""
Find an account.
Find an Account
Find accounts whose name contains the search text.
Expand All @@ -367,7 +367,7 @@ def test_help():
except OSError as err:
result = os_error(err)
expected = dedent("""
Give information about commands or other topics.
Give Information About Commands or Other Topics
Usage:
avendesora help [options] [<topic>]
Expand All @@ -385,7 +385,7 @@ def test_identity():
except OSError as err:
result = os_error(err)
expected = dedent("""
Generate an identifying response to a challenge.
Generate an Identifying Response to a Challenge
Usage:
avendesora identity [<name> [<challenge>...]]
Expand Down Expand Up @@ -461,7 +461,7 @@ def test_initialize():
except OSError as err:
result = os_error(err)
expected = dedent("""
Create initial set of Avendesora files.
Create Initial Set of Avendesora Files
Usage:
avendesora initialize [options]
Expand All @@ -488,7 +488,7 @@ def test_interactive():
except OSError as err:
result = os_error(err)
expected = dedent("""
Interactively query account values.
Interactively Query Account Values
Usage:
avendesora interactive [options] <account>
Expand All @@ -513,7 +513,7 @@ def test_log():
except OSError as err:
result = os_error(err)
expected = dedent("""
Open the logfile.
Open the Logfile
Usage:
avendesora [options] log
Expand All @@ -535,7 +535,7 @@ def test_new():
except OSError as err:
result = os_error(err)
expected = dedent("""
Create new accounts file.
Create New Accounts File
Usage:
avendesora new [options] <name>
Expand Down Expand Up @@ -567,7 +567,7 @@ def test_phonetic():
except OSError as err:
result = os_error(err)
expected = dedent("""
Display NATO phonetic alphabet.
Display NATO Phonetic Alphabet
Usage:
avendesora phonetic [<text>]
Expand All @@ -585,7 +585,7 @@ def test_questions():
except OSError as err:
result = os_error(err)
expected = dedent("""
Answer a security question.
Answer a Security Question
Displays the security questions and then allows you to select one
to be answered.
Expand Down Expand Up @@ -623,7 +623,7 @@ def test_reveal():
except OSError as err:
result = os_error(err)
expected = dedent("""
Reveal concealed text.
Reveal Concealed Text
Transform concealed text to reveal its original form.
Expand All @@ -649,7 +649,7 @@ def test_search():
except OSError as err:
result = os_error(err)
expected = dedent("""
Search accounts.
Search Accounts
Search for accounts whose values contain the search text.
Expand All @@ -665,7 +665,7 @@ def test_value():
except OSError as err:
result = os_error(err)
expected = dedent("""
Show an account value.
Show an Account Value
Produce an account value. If the value is secret, it is produced only
temporarily unless --stdout is specified.
Expand Down Expand Up @@ -774,7 +774,7 @@ def test_values():
except OSError as err:
result = os_error(err)
expected = dedent("""
Display all account values.
Display All Account Values
Show all account values.
Expand All @@ -794,7 +794,7 @@ def test_version():
except OSError as err:
result = os_error(err)
expected = dedent("""
Display Avendesora version.
Display Avendesora Version
Usage:
avendesora version
Expand Down

0 comments on commit ec08be9

Please sign in to comment.