summaryrefslogtreecommitdiff
path: root/morphlib/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/app.py')
-rw-r--r--morphlib/app.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index b5bcb601..6964be56 100644
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -358,16 +358,15 @@ class Morph(cliapp.Application):
else:
print_command = True
- # convert the command line arguments into a string
- commands = [argv] + list(args)
- for command in commands:
- if isinstance(command, list):
- for i in xrange(0, len(command)):
- command[i] = str(command[i])
- commands = [' '.join(command) for command in commands]
-
- # print the command line
if print_command:
+ # Print the command line
+ commands = [argv] + list(args)
+ for command in commands:
+ if isinstance(command, list):
+ for i in xrange(0, len(command)):
+ command[i] = str(command[i])
+ commands = [' '.join(command) for command in commands]
+
self.status(msg='# %(cmdline)s',
cmdline=' | '.join(commands),
chatty=True)