Skip to content
Snippets Groups Projects
Commit 08e3ebc4 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

bin: fix wrong comments/command help

parent b22cd0ce
No related branches found
No related tags found
1 merge request!21Clean up the repository, add some usage-level documentation
#!/usr/bin/env python3
#
# Small tool to manipulaote
# Small tool to manipulate bin-envs
import argparse
import os
import subprocess
......@@ -42,7 +42,7 @@
def setup_one(env_path, script):
if not os.access(script, os.X_OK):
err(f'no executable setup scrip at: "{script}"')
err(f'no executable setup script at: "{script}"')
return ERR_CODE_NO_SETUP_SCRIPT
ret = create_empty(env_path, method="script")
if ret != 0:
......@@ -118,7 +118,7 @@
### bin-env-util setup-one-sh PATH SCRIPT
cmd_parser = subparsers.add_parser(
'setup-one',
help='create a new empty bin-env'
help='create a new bin-env with a setup script'
)
cmd_parser.add_argument(
'PATH',
......@@ -166,7 +166,7 @@
### bin-env-util set PATH KEY VALUE
cmd_parser = subparsers.add_parser(
'set',
help='Show a specific bin-env variable'
help='Set the value of a specific bin-env variable'
)
cmd_parser.add_argument(
'PATH',
......@@ -184,7 +184,7 @@
### bin-env-util del PATH KEY
cmd_parser = subparsers.add_parser(
'del',
help='Show a specific bin-env variable'
help='Delete a specific bin-env variable'
)
cmd_parser.add_argument(
'PATH',
......
#!/usr/bin/env python3
#
# Small tool to manipulaote
# Small tool to compare two results
import argparse
import collections
import os
......@@ -89,7 +89,7 @@
cmd_parser.add_argument(
'OLD_RESULT',
help="the path to the binary environment directory",
help="path to the old result",
)
cmd_parser.add_argument(
'NEW_RESULT',
......@@ -93,7 +93,7 @@
)
cmd_parser.add_argument(
'NEW_RESULT',
help="the path to the data environment directory",
help="path to the new result",
)
cmd_parser.add_argument('--full', action='store_const', const=True)
......
#!/usr/bin/env python3
#
# Small tool to manipulaote
# Small utility to manipulate environment description
import os
import sys
......
......@@ -86,7 +86,7 @@
def _parsers():
cmd_parser = argparse.ArgumentParser(prog='result-search')
cmd_parser = argparse.ArgumentParser(prog='result-compare')
return cmd_parser
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment