summaryrefslogtreecommitdiffstats
path: root/scripts/ingenish
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ingenish')
-rwxr-xr-xscripts/ingenish10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/ingenish b/scripts/ingenish
index a1ff3a56..2e5d3d88 100755
--- a/scripts/ingenish
+++ b/scripts/ingenish
@@ -25,6 +25,12 @@ try:
except:
pass
+# Python 2 compatibility
+try:
+ input = raw_input
+except NameError:
+ pass
+
def print_usage():
print('''Usage: ingenish [OPTION]... [COMMAND [ARGUMENT]...]
@@ -39,7 +45,7 @@ Options:
Commands:
put SUBJECT BODY
- set SUBJECT BODY
+ set SUBJECT KEY VALUE
connect TAIL HEAD
disconnect TAIL HEAD
patch SUBJECT REMOVE ADD
@@ -101,7 +107,7 @@ if len(sys.argv) - a == 0:
print('Ingen server at %s' % server)
while True:
try:
- run(shlex.split(raw_input('> ')))
+ run(shlex.split(input('> ')))
except (EOFError, KeyboardInterrupt, SystemExit):
break
except: