Adjust help and error messages
This commit is contained in:
parent
c7e7d1e003
commit
3600e9832d
@ -199,7 +199,7 @@ def main(argv):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-r', '--runtime', action='store_true',
|
'-r', '--runtime', action='store_true',
|
||||||
help='Generate run-time requirements (not implemented)',
|
help='Generate run-time requirements',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-t', '--toxenv', metavar='TOXENVS',
|
'-t', '--toxenv', metavar='TOXENVS',
|
||||||
@ -210,7 +210,10 @@ def main(argv):
|
|||||||
args = parser.parse_args(argv)
|
args = parser.parse_args(argv)
|
||||||
if args.toxenv:
|
if args.toxenv:
|
||||||
args.runtime = True
|
args.runtime = True
|
||||||
print_err('--toxenv is not implemented')
|
print_err('-t (--toxenv) is not implemented')
|
||||||
|
exit(1)
|
||||||
|
if args.extras and not args.runtime:
|
||||||
|
print_err('-x (--extras) are only useful with -r (--runtime)')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
freeze_output = subprocess.run(
|
freeze_output = subprocess.run(
|
||||||
|
Loading…
Reference in New Issue
Block a user