aboutsummaryrefslogtreecommitdiff
path: root/src/cli.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-08-29 17:13:57 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-08-29 17:13:57 +0200
commita1c7fe1b6d95e2560e62c12453da287d36d4a714 (patch)
tree72ce0f3a7dcf3627aba0b019665a23dcaec9f4f5 /src/cli.py
parentc766a4481526215057cac928d09d62319f290fe4 (diff)
downloaddslr-a1c7fe1b6d95e2560e62c12453da287d36d4a714.tar.gz
dslr-a1c7fe1b6d95e2560e62c12453da287d36d4a714.tar.bz2
dslr-a1c7fe1b6d95e2560e62c12453da287d36d4a714.zip
Removed bloat, Added logreg_train
Diffstat (limited to 'src/cli.py')
-rw-r--r--src/cli.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/cli.py b/src/cli.py
deleted file mode 100644
index ec1a324..0000000
--- a/src/cli.py
+++ /dev/null
@@ -1,29 +0,0 @@
-class CommandLineInterface:
- def __init__(self):
- pass
-
- def parse_args(self):
- parse = argparse.ArgumentParser(prog="dslr_cli",
- description="CLI for the dslr project")
- subparser = parser.add_subparsers(dest="subparser_name")
- parser_describe = subparsers.add_parser("describe",
- help="give useful information about a dataset")
- parser_describe.add_argument("path", help="path to the dataset")
- parser_describe.set_defaults(func=self._describe)
-
- self.args = parser.parse_args(sys.argv[1:])
-
- def exec_args(self):
- if self.args.subparser_name is None:
- print("{} --help for more information".format(sys.argv[0]))
- return
- self.args.func()
-
- def _describe(self):
- describe.describe(self.args.path)
-
-
-if __name__ == "__main__":
- cli = CommandLineInterface()
- cli.parse_args()
- cli.exec_args()