Skip to content

Commit 06ca14d

Browse files
committed
added entry_point (using prog='...')
1 parent 598c170 commit 06ca14d

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

python/weka/associations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1313

1414
# associations.py
15-
# Copyright (C) 2014-2021 Fracpete (pythonwekawrapper at gmail dot com)
15+
# Copyright (C) 2014-2022 Fracpete (pythonwekawrapper at gmail dot com)
1616

1717
import javabridge
1818
import logging
@@ -655,7 +655,8 @@ def main(args=None):
655655
"""
656656

657657
parser = argparse.ArgumentParser(
658-
description='Executes an associator from the command-line. Calls JVM start/stop automatically.')
658+
description='Executes an associator from the command-line. Calls JVM start/stop automatically.',
659+
prog='pww-associator')
659660
parser.add_argument("-j", metavar="classpath", dest="classpath", help="additional classpath, jars/directories")
660661
parser.add_argument("-X", metavar="heap", dest="heap", help="max heap size for jvm, e.g., 512m")
661662
parser.add_argument("-t", metavar="train", dest="train", required=True, help="training set file")

python/weka/attribute_selection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1313

1414
# attribute_selection.py
15-
# Copyright (C) 2014-2021 Fracpete (pythonwekawrapper at gmail dot com)
15+
# Copyright (C) 2014-2022 Fracpete (pythonwekawrapper at gmail dot com)
1616

1717
import javabridge
1818
import logging
@@ -386,7 +386,8 @@ def main(args=None):
386386
"""
387387

388388
parser = argparse.ArgumentParser(
389-
description='Performs attribute selection from the command-line. Calls JVM start/stop automatically.')
389+
description='Performs attribute selection from the command-line. Calls JVM start/stop automatically.',
390+
prog='pww-attsel')
390391
parser.add_argument("-j", metavar="classpath", dest="classpath", help="additional classpath, jars/directories")
391392
parser.add_argument("-X", metavar="heap", dest="heap", help="max heap size for jvm, e.g., 512m")
392393
parser.add_argument("-i", metavar="input", dest="input", required=True, help="input file")

python/weka/classifiers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,8 @@ def main(args=None):
22712271
"""
22722272

22732273
parser = argparse.ArgumentParser(
2274-
description='Performs classification/regression from the command-line. Calls JVM start/stop automatically.')
2274+
description='Performs classification/regression from the command-line. Calls JVM start/stop automatically.',
2275+
prog='pww-classifier')
22752276
parser.add_argument("-j", metavar="classpath", dest="classpath", help="additional classpath, jars/directories")
22762277
parser.add_argument("-X", metavar="heap", dest="heap", help="max heap size for jvm, e.g., 512m")
22772278
parser.add_argument("-t", metavar="train", dest="train", required=True, help="Training set file")

python/weka/clusterers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1313

1414
# clusterers.py
15-
# Copyright (C) 2014-2021 Fracpete (pythonwekawrapper at gmail dot com)
15+
# Copyright (C) 2014-2022 Fracpete (pythonwekawrapper at gmail dot com)
1616

1717
import javabridge
1818
import logging
@@ -497,7 +497,8 @@ def main(args=None):
497497
"""
498498

499499
parser = argparse.ArgumentParser(
500-
description='Performs clustering from the command-line. Calls JVM start/stop automatically.')
500+
description='Performs clustering from the command-line. Calls JVM start/stop automatically.',
501+
prog='pww-clusterer')
501502
parser.add_argument("-j", metavar="classpath", dest="classpath", help="additional classpath, jars/directories")
502503
parser.add_argument("-X", metavar="heap", dest="heap", help="max heap size for jvm, e.g., 512m")
503504
parser.add_argument("-t", metavar="train", dest="train", required=True, help="training set file")

python/weka/datagenerators.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1313

1414
# datagenerators.py
15-
# Copyright (C) 2014-2019 Fracpete (pythonwekawrapper at gmail dot com)
15+
# Copyright (C) 2014-2022 Fracpete (pythonwekawrapper at gmail dot com)
1616

1717
import javabridge
1818
import logging
@@ -188,7 +188,8 @@ def main(args=None):
188188
"""
189189

190190
parser = argparse.ArgumentParser(
191-
description='Executes a data generator from the command-line. Calls JVM start/stop automatically.')
191+
description='Executes a data generator from the command-line. Calls JVM start/stop automatically.',
192+
prog='pww-datagenerator')
192193
parser.add_argument("-j", metavar="classpath", dest="classpath", help="additional classpath, jars/directories")
193194
parser.add_argument("-X", metavar="heap", dest="heap", help="max heap size for jvm, e.g., 512m")
194195
parser.add_argument("datagenerator", help="data generator classname, e.g., "

python/weka/filters.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1313

1414
# filters.py
15-
# Copyright (C) 2014-2021 Fracpete (pythonwekawrapper at gmail dot com)
15+
# Copyright (C) 2014-2022 Fracpete (pythonwekawrapper at gmail dot com)
1616

1717
import javabridge
1818
import logging
@@ -439,7 +439,8 @@ def main(args=None):
439439
"""
440440

441441
parser = argparse.ArgumentParser(
442-
description='Executes a filter from the command-line. Calls JVM start/stop automatically.')
442+
description='Executes a filter from the command-line. Calls JVM start/stop automatically.',
443+
prog='pww-filter')
443444
parser.add_argument("-j", metavar="classpath", dest="classpath", help="additional classpath, jars/directories")
444445
parser.add_argument("-X", metavar="heap", dest="heap", help="max heap size for jvm, e.g., 512m")
445446
parser.add_argument("-i", metavar="input1", dest="input1", required=True, help="input file 1")

0 commit comments

Comments
 (0)