Skip to content

Commit

Permalink
cmd: analyzercli ok
Browse files Browse the repository at this point in the history
  • Loading branch information
p-l- committed Nov 15, 2015
1 parent 92a24e4 commit bd1e1d0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ivre/tools/analyzercli.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

"""Command line interface tool to access the analyzer API"""

import sys

from ivre import webutils
from ivre.db import db
from ivre.cliutils import colorize_log, StackCli
Expand Down Expand Up @@ -245,5 +247,11 @@ def help_remove_clusters():
\tEnter -1 for noise if DBSCAN clusterring""")


if __name__ == '__main__':
AnalyzerCli().cmdloop()
def main():
# no argparse / optparse here, so...
if "-h" in sys.argv or "--help" in sys.argv:
sys.stdout.write("usage: %s\n\n" % (sys.argv[0]))
sys.stdout.write(__doc__)
sys.stdout.write("\n\n")
else:
AnalyzerCli().cmdloop()

0 comments on commit bd1e1d0

Please sign in to comment.