mirror of
https://gitlab.com/manzerbredes/clusterman.git
synced 2025-04-06 03:56:27 +02:00
Minor changes
This commit is contained in:
parent
97b82ce849
commit
b109653dad
1 changed files with 16 additions and 1 deletions
|
@ -1,4 +1,19 @@
|
|||
import argparse,sys
|
||||
|
||||
def main():
|
||||
print("It works!")
|
||||
parser = argparse.ArgumentParser()
|
||||
subparsers = parser.add_subparsers(help='Command to run')
|
||||
cmd_node = subparsers.add_parser("node")
|
||||
|
||||
# Check if command specified:
|
||||
if len(sys.argv)==1:
|
||||
parser.print_help(sys.stderr)
|
||||
sys.exit(1)
|
||||
# Parse arguments:
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue