-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial Commit Help Pages #48
Conversation
I'll look over the actual helppage content later |
eval.nf
Outdated
@@ -1,3 +1,10 @@ | |||
//load in help function | |||
File data_class_file = new File("./src/data_class.groovy"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please rename that file into something like Helppages.groovy
? This describes the purpose of the class more intuitively.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for the variable's name data_class_file
-> helppages_class_file
eval.nf
Outdated
@@ -1,3 +1,10 @@ | |||
//load in help function | |||
File data_class_file = new File("./src/data_class.groovy"); | |||
Class groovyClass = new GroovyClassLoader(getClass().getClassLoader()).parseClass(data_class_file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same: groovyClass
-> HelppagesClass
eval.nf
Outdated
//load in help function | ||
File data_class_file = new File("./src/data_class.groovy"); | ||
Class groovyClass = new GroovyClassLoader(getClass().getClassLoader()).parseClass(data_class_file); | ||
GroovyObject data_class = (GroovyObject) groovyClass.newInstance(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same: data_class
-> help
eval.nf
Outdated
Class groovyClass = new GroovyClassLoader(getClass().getClassLoader()).parseClass(data_class_file); | ||
GroovyObject data_class = (GroovyObject) groovyClass.newInstance(); | ||
|
||
if (params.help) { exit 0, data_class.helpEval(workflow.manifest.version) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs then adjustment to new name
hap.nf
Outdated
@@ -1,3 +1,10 @@ | |||
//load in help function | |||
File data_class_file = new File("./src/data_class.groovy"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as in eval.nf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested as functional 🚀
One can now run:
nextflow run eval.nf --help
ornextflow run hap.nf --help
,to see a help page with minimal usage examples and parameter explanations.
Issue: #39