To do that, we just need a release tag (v1.0.0) of your current master branch, and we also need that your -h option of PB.cpp return a 0 exit code instead of 1 (-h options are most of the time used to make post packaging smoke test).
Here is a patch proposal:
diff --git a/sources/PB.cpp b/sources/PB.cpp
index 480d994..b36458c 100644
--- a/sources/PB.cpp
+++ b/sources/PB.cpp
@@ -85,6 +85,8 @@ int main(int argc, char* argv[]) {
int topoburnin = 0;
+ bool help = false;
+
try {
if (argc == 1) {
@@ -104,6 +106,7 @@ int main(int argc, char* argv[]) {
exit(1);
}
else if ((s == "-h") || (s == "--help")) {
+ help = true;
throw(0);
}
else if (s == "-f") {
@@ -463,7 +466,11 @@ int main(int argc, char* argv[]) {
}
MPI_Finalize();
- exit(1);
+ if (help) {
+ exit(0);
+ } else {
+ exit(1);
+ }
}
if ((modeltype == -1) && (mixturetype == -1)) {
Hello,
Upon the request of a user (https://github.com/BioContainers/containers/issues/162), we would like to produce a BioConda package of pbmpi, which will facilitate later the creation of a Singularity (bio)container.
Ref:
To do that, we just need a release tag (v1.0.0) of your current master branch, and we also need that your -h option of PB.cpp return a 0 exit code instead of 1 (-h options are most of the time used to make post packaging smoke test).
Here is a patch proposal:
Is it OK for you ?
Best
Patrice