Skip to content
Permalink
Browse files

Merge pull request #123 from technocake/fix/122

fix issue 122
  • Loading branch information...
technocake committed Aug 11, 2019
2 parents 8e96aee + 36fdb84 commit f76619ab15d0c3138e788afafca56b62918f39d9
Showing with 5 additions and 4 deletions.
  1. +2 −2 goto/commands/usage.py
  2. +3 −2 goto/the_real_goto.py
@@ -2,7 +2,7 @@
from __future__ import unicode_literals


def usage():
def usage(magic=None, command=None, args=None, options=None):
"""
Get information about usage
"""
@@ -37,4 +37,4 @@ def usage():
* requires a magicword named code pointing to a folder.
goto add code <path to folder with code>
"""
""", None
@@ -44,6 +44,7 @@
'idea': commands.intellij,
}


def main():
fix_python2()
make_sure_we_print_in_utf8()
@@ -60,7 +61,7 @@ def main():
options = list(filter(lambda word: word.startswith('-'), argv))

if not command and len(args) == 0:
output = commands.usage()
output, err = commands.usage()
print_utf8(output)
exit(0)

@@ -103,7 +104,7 @@ def exit_if_unhealthy():

def exit_with_usage_if_needed():
if len(sys.argv) < 3:
output = commands.usage()
output, err = commands.usage()
print_utf8(output)
exit(0)

0 comments on commit f76619a

Please sign in to comment.
You can’t perform that action at this time.