Skip to content

Commit

Permalink
fix help of 'super' and 'shell' commands (#194)
Browse files Browse the repository at this point in the history
* fix help of 'super' and 'shell' commands
  • Loading branch information
sebastien-rosset authored Sep 13, 2021
1 parent 9edc9d4 commit bdb046a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gita/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,31 +615,31 @@ def main(argv=None):
p_super = subparsers.add_parser(
'super',
help='run any git command/alias',
description='Superman mode: delegate any git command/alias in specified or '
description='Superman mode: delegate any git command/alias in specified repo(s), group(s), or '
'all repo(s).\n'
'Examples:\n \t gita super myrepo1 commit -am "fix a bug"\n'
'\t gita super repo1 repo2 repo3 checkout new-feature')
p_super.add_argument(
'man',
nargs=argparse.REMAINDER,
help="execute arbitrary git command/alias for specified or all repos\n"
"Example: gita super myrepo1 diff --name-only --staged "
help="execute arbitrary git command/alias for specified repo(s), group(s), or all repos.\n"
"Example: gita super myrepo1 diff --name-only --staged\n"
"Another: gita super checkout master ")
p_super.set_defaults(func=f_super)

# shell mode
p_shell = subparsers.add_parser(
'shell',
help='run any shell command',
description='shell mode: delegate any shell command in specified or '
description='shell mode: delegate any shell command in specified repo(s), group(s), or '
'all repo(s).\n'
'Examples:\n \t gita shell pwd; \n'
'\t gita shell repo1 repo2 repo3 touch xx')
p_shell.add_argument(
'man',
nargs=argparse.REMAINDER,
help="execute arbitrary shell command for specified or all repos "
"Example: gita shell myrepo1 ls"
help="execute arbitrary shell command for specified repo(s), group(s), or all repos.\n"
"Example: gita shell myrepo1 ls\n"
"Another: gita shell git checkout master ")
p_shell.set_defaults(func=f_shell)

Expand Down

0 comments on commit bdb046a

Please sign in to comment.