Skip to content

Commit a881f73

Browse files
authored
Merge pull request #76 from CAnBioNet/calc-net-props-required-args
Mark required arguments in calc_network_properties.py as required
2 parents 2748c00 + 4f42258 commit a881f73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

analysis/calc_network_properties.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
parser = argparse.ArgumentParser(description="Example command: python ./analysis/calc_network_properties.py --network <file.csv> --bibc --bibc-groups <choice> --bibc-calc-type <choice> --map <file.csv> --node-groups <group 1> <group 2> --out-dir <directory>", add_help=False)
3232

3333
requiredArgGroup = parser.add_argument_group('Required arguments')
34-
requiredArgGroup.add_argument("--network", help= "The network file in csv format containing the reconstructed network. Must have columns called 'partner1' and 'partner2'")
35-
requiredArgGroup.add_argument("--out-dir", dest = "outdir", help= "Path to the directory to output results to")
34+
requiredArgGroup.add_argument("--network", help= "The network file in csv format containing the reconstructed network. Must have columns called 'partner1' and 'partner2'", required=True)
35+
requiredArgGroup.add_argument("--out-dir", dest = "outdir", help= "Path to the directory to output results to", required=True)
3636

3737

3838
optionalArgGroup = parser.add_argument_group('Optional arguments')

0 commit comments

Comments
 (0)