Skip to content

Commit f6b40c5

Browse files
Adds action to parser
1 parent e1e1de9 commit f6b40c5

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.gitpod.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# and commit this file to your remote git repository to share the goodness with others.
44

55
tasks:
6-
- init: pip install -r requirements.txt
6+
- init: |
7+
pip install -r requirements.txt
8+
pip install -e .
79
vscode:
810
extensions:
911
- ms-python.python

wfcommons/wfchef/chef.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import json
1212
import argparse
1313
import math
14+
import sys
1415
import networkx as nx
1516
import numpy as np
1617
import pandas as pd
@@ -343,6 +344,10 @@ def main():
343344
parser = get_parser()
344345
args = parser.parse_args()
345346

347+
if not hasattr(args, "action"):
348+
sys.argv.append("--help")
349+
parser.parse_args()
350+
346351
if args.action == ls_recipe:
347352
ls_recipe()
348353
elif args.action == uninstall_recipe:

0 commit comments

Comments
 (0)