Skip to content

Commit 089b673

Browse files
committed
Add Knotergy Version
1 parent bf19441 commit 089b673

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

conda_recipe/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
- Run `conda install --use-local knotergy` to install (case sensitive)
1111
- Run `Knotergy --help` to insure it installed properly (case sensitive)
1212

13+
If you want to delete the package, run `conda remove Knotergy`
14+
1315

1416
## Automated Package Upload
1517

conda_recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: knotergy
3-
version: "0.1.0"
3+
version: "0.1.1"
44

55
source:
66
- path: ..

src/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
#include "loop_tree/LoopFactory.hpp"
1010
#include "energy/ComputeEnergy.hpp"
1111

12+
#define KNOTERGY_VERSION "0.1.1"
13+
1214
namespace {
1315
void help() {
1416
std::cout << "Usage: ./Knotergy [options]\n"
1517
<< "Options:\n"
1618
<< " -h, --help Show this help message\n"
19+
<< " -V, --version Print version and exit\n"
1720
<< " -s, --sequence <string> RNA sequence\n"
1821
<< " -r, --structure <string> Input structure\n"
1922
<< " -i, --input <file> Input file\n"
@@ -87,6 +90,9 @@ int main(int argc, char** argv) {
8790
} else if (arg == "-h" || arg == "--help") {
8891
help();
8992
return 0;
93+
} else if (arg == "-v" || arg == "--version") {
94+
std::cout << "Knotergy " << KNOTERGY_VERSION << std::endl;
95+
return 0;
9096
} else {
9197
std::cerr << "Unknown option or missing value: " << arg << std::endl;
9298
return 1;

0 commit comments

Comments
 (0)