Commit d039a762 authored by heemayl's avatar heemayl

Modified client help text formatting

parent a7cb7a8c
......@@ -54,23 +54,23 @@ def parse_arguments():
metavar='<command> <datetime_spec> [<shell>]', nargs='+',
required=False, help="""Add a new job. If shell is specified, the job will be run in the given shell, otherwise no shell will be used. Example:
hatc --add 'free -m' 'now + 30 min'
hatc -a 'tail -10 /var/log/syslog' 'tomorrow at 14:30'
hatc -a 'func() { echo Test ;}; func()' 'next sunday 11' bash
hatc -a 'echo $PATH' 'today 18:06:34' dash
hatc -a date 'tomorrow 10 - 6 hr 12 min 3 sec'
More on <datetime_spec>: https://github.com/heemayl/humantime-epoch-converter
Job's STDOUT, STDERR will be logged in `~/.hatd/logs/{stdout,stderr}.log`, respectively.
"""
hatc --add 'free -m' 'now + 30 min'
hatc -a 'tail -10 /var/log/syslog' 'tomorrow at 14:30'
hatc -a 'func() { echo Test ;}; func()' 'next sunday 11' bash
hatc -a 'echo $PATH' 'today 18:06:34' dash
hatc -a date 'tomorrow 10 - 6 hr 12 min 3 sec'
More on <datetime_spec>: https://github.com/heemayl/humantime-epoch-converter
Job's STDOUT, STDERR will be logged in `~/.hatd/logs/{stdout,stderr}.log`, respectively.
"""
)
parser.add_argument('-r', '--remove', dest='remove_job',
metavar='<JOB_ID>', nargs='+',
required=False, help="""Remove queued job(s) by Job ID. Example:
hatc --remove 12
hatc -r 3 8 23
"""
hatc --remove 12
hatc -r 3 8 23
"""
)
args_ns = parser.parse_args()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment