Browse Source

Change -V option to -v everywhere

tags/nilmrun-1.3.1^0
Jim Paris 9 years ago
parent
commit
9309fd9b57
4 changed files with 8 additions and 13 deletions
  1. +2
    -3
      scripts/kill.py
  2. +2
    -4
      scripts/nilmrun_server.py
  3. +2
    -3
      scripts/ps.py
  4. +2
    -3
      scripts/run.py

+ 2
- 3
scripts/kill.py View File

@@ -13,9 +13,8 @@ def main():
def_url = os.environ.get("NILMRUN_URL", "http://localhost/nilmrun/")
parser = argparse.ArgumentParser(
description = 'Kill/remove a process from the NilmRun server',
formatter_class = argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("-V", "--version", action="version",
version = nilmrun.__version__)
formatter_class = argparse.ArgumentDefaultsHelpFormatter,
version = nilmrun.__version__)
group = parser.add_argument_group("Standard options")
group.add_argument('-u', '--url',
help = 'NilmRun server URL', default = def_url)


+ 2
- 4
scripts/nilmrun_server.py View File

@@ -10,10 +10,8 @@ def main():

parser = argparse.ArgumentParser(
description = 'Run the NilmRun server',
formatter_class = argparse.ArgumentDefaultsHelpFormatter)

parser.add_argument("-V", "--version", action="version",
version = nilmrun.__version__)
formatter_class = argparse.ArgumentDefaultsHelpFormatter,
version = nilmrun.__version__)

group = parser.add_argument_group("Standard options")
group.add_argument('-a', '--address',


+ 2
- 3
scripts/ps.py View File

@@ -13,9 +13,8 @@ def main():
def_url = os.environ.get("NILMRUN_URL", "http://localhost/nilmrun/")
parser = argparse.ArgumentParser(
description = 'List NilmRun processes',
formatter_class = argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("-V", "--version", action="version",
version = nilmrun.__version__)
formatter_class = argparse.ArgumentDefaultsHelpFormatter,
version = nilmrun.__version__)
group = parser.add_argument_group("Standard options")
group.add_argument('-u', '--url',
help = 'NilmRun server URL', default = def_url)


+ 2
- 3
scripts/run.py View File

@@ -14,9 +14,8 @@ def main():
def_url = os.environ.get("NILMRUN_URL", "http://localhost/nilmrun/")
parser = argparse.ArgumentParser(
description = 'Run a command on the NilmRun server',
formatter_class = argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("-V", "--version", action="version",
version = nilmrun.__version__)
formatter_class = argparse.ArgumentDefaultsHelpFormatter,
version = nilmrun.__version__)
group = parser.add_argument_group("Standard options")
group.add_argument('-u', '--url',
help = 'NilmRun server URL', default = def_url)


Loading…
Cancel
Save