We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f26946f commit 9eb0f4eCopy full SHA for 9eb0f4e
bin/cmo_abra
@@ -35,9 +35,14 @@ This method gets command-line option for the tool being wrapped.
35
36
def find_command_options(java, abra_jar, version):
37
# Make command to be run
38
- if distutils.version.StrictVersion(version) >= distutils.version.StrictVersion('2.08'):
39
- cmd = [java, "-jar", abra_jar]
40
- else:
+ try:
+ if distutils.version.StrictVersion(version) >= distutils.version.StrictVersion('2.08'):
+ cmd = [java, "-jar", abra_jar]
41
+ else:
42
+ cmd = [java, "-jar", abra_jar, "--help"]
43
+ except:
44
+ #version was default
45
+
46
cmd = [java, "-jar", abra_jar, "--help"]
47
# Run the command and get the help
48
print " ".join(cmd)
0 commit comments