from jcvi.apps.base import OptionParser parser = OptionParser() parser.set_home(".")
from jcvi.apps.base import OptionParser parser = OptionParser() parser.set_home("/path/to/output/")
from jcvi.apps.base import OptionParser parser = OptionParser() parser.add_option("--output-dir", help="Specify the output directory", default=".") (options, args) = parser.parse_args() parser.set_home(options.output_dir)In this example, we've added a command-line flag `--output-dir` which the user can use to specify the output directory. We then call `set_home` to set the directory to the value of this flag. The package library for `jcvi.apps.base` is `jcvi`.