Skip to content

Commit

Permalink
core: minor command line help improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Feb 2, 2025
1 parent c784b7d commit 5d605da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/agstoolbox/core/cmdline/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def cmdline(show_help_when_empty: bool, program_name: str):
p_oop.add_argument('PROJECT_PATH',
help='path to the project to be opened').complete = shtab.FILE
p_oop.add_argument('-n', '--non-blocking', action='store_true', default=False,
help='do not wait for Editor to be closed to continue')
help='don\'t wait for Editor to close to continue')
p_oop.add_argument('-w', '--which-editor', action='store_true', default=False,
help='give editor path only, don\'t open project')

Expand All @@ -444,9 +444,9 @@ def cmdline(show_help_when_empty: bool, program_name: str):
p_b.add_argument('PROJECT_PATH',
help='path to the project to be built').complete = shtab.FILE
p_b.add_argument('-n', '--non-blocking', action='store_true', default=False,
help='do not wait for Editor to be closed to continue')
p_b.add_argument('-t', '--timeout', type=int, default=0,
help='duration in seconds to wait before interrupting the build.')
help='don\'t wait for Editor to close to continue')
p_b.add_argument('-t', '--timeout', metavar='SEC', type=int, default=0,
help='seconds to wait before interrupting the build')

# settings command
p_s = subparsers.add_parser('settings', help='modify or show settings')
Expand Down Expand Up @@ -486,8 +486,8 @@ def cmdline(show_help_when_empty: bool, program_name: str):
help='where to export the template').complete = shtab.DIRECTORY
p_eet.add_argument('-f', '--force-editor', action='store_true', default=False,
help='use editor for template export')
p_eet.add_argument('-t', '--timeout', type=int, default=0,
help='duration in seconds to wait before interrupting editor export.')
p_eet.add_argument('-t', '--timeout', metavar='SEC', type=int, default=0,
help='seconds to wait before interrupting editor export')

args = parser.parse_args()
if 'func' in args.__dict__:
Expand Down

0 comments on commit 5d605da

Please sign in to comment.