summaryrefslogtreecommitdiff
path: root/git_crecord/main.py
diff options
context:
space:
mode:
authorAndrej Shadura <andrew@shadura.me>2022-03-24 17:35:30 +0100
committerAndrej Shadura <andrew@shadura.me>2022-03-24 17:35:30 +0100
commitcdcdb812ab089755bbcb639ad28fb88a9f8f9487 (patch)
treebc3c8aa5ddc35c849ae5c9ee6cc68059a813d7ac /git_crecord/main.py
parent682959f0b8974acc5ecdd66009cee90a04f505fd (diff)
Fix Flake8 warnings
Diffstat (limited to 'git_crecord/main.py')
-rw-r--r--git_crecord/main.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/git_crecord/main.py b/git_crecord/main.py
index 3045729..29fa7ce 100644
--- a/git_crecord/main.py
+++ b/git_crecord/main.py
@@ -194,19 +194,25 @@ def main():
parser.add_argument('--author', default=None, help='override author for commit')
parser.add_argument('--date', default=None, help='override date for commit')
parser.add_argument('-m', '--message', default=None, help='commit message')
- parser.add_argument('-c', '--reedit-message', metavar='COMMIT', default=None, help='reuse and edit message from specified commit')
- parser.add_argument('-C', '--reuse-message', metavar='COMMIT', default=None, help='reuse message from specified commit')
- parser.add_argument('--fixup', metavar='COMMIT', default=None, help='create autosquash commit message to fixup specified commit')
- parser.add_argument('--reset-author', action='store_true', default=False, help='the commit is authored by me now (used with -C/-c/--amend)')
+ parser.add_argument('-c', '--reedit-message', metavar='COMMIT', default=None,
+ help='reuse and edit message from specified commit')
+ parser.add_argument('-C', '--reuse-message', metavar='COMMIT', default=None,
+ help='reuse message from specified commit')
+ parser.add_argument('--fixup', metavar='COMMIT', default=None,
+ help='create autosquash commit message to fixup specified commit')
+ parser.add_argument('--reset-author', action='store_true', default=False,
+ help='the commit is authored by me now (used with -C/-c/--amend)')
parser.add_argument('-s', '--signoff', action='store_true', default=False, help='add Signed-off-by:')
parser.add_argument('--amend', action='store_true', default=False, help='amend previous commit')
- parser.add_argument('-S', '--gpg-sign', metavar='KEY-ID', nargs='?', const=True, default=None, help='GPG sign commit')
+ parser.add_argument('-S', '--gpg-sign', metavar='KEY-ID', nargs='?', const=True, default=None,
+ help='GPG sign commit')
parser.add_argument('--no-gpg-sign', action='store_true', default=False, help=argparse.SUPPRESS)
parser.add_argument('-v', '--verbose', default=0, action='count', help='be more verbose')
parser.add_argument('--debug', action='store_const', const=2, dest='verbose', help='be debuggingly verbose')
parser.add_argument('--cleanup', default=None, help=argparse.SUPPRESS)
parser.add_argument('--quiet', default=False, action='store_true', help='pass --quiet to git commit')
- parser.add_argument('--confirm', default=False, action='store_true', help='show confirmation prompt after selecting changes')
+ parser.add_argument('--confirm', default=False, action='store_true',
+ help='show confirmation prompt after selecting changes')
group = parser.add_mutually_exclusive_group()
group.add_argument('--cached', '--staged', action='store_true', default=False, help=argparse.SUPPRESS)
group.add_argument('--index', action='store_true', default=False, help=argparse.SUPPRESS)