Minor changes

This commit is contained in:
Loïc Guégan 2023-10-25 13:40:39 +02:00
parent 97b82ce849
commit b109653dad

View file

@ -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()