Commits

Meme Dough  committed c2973b1

Report full command being run and fix typo.

  • Participants
  • Parent commits 86d7ebe
  • Tags RELEASE_1_1

Comments (0)

Files changed (2)

File nosier/constants.py

 
 Full help displayed with %prog --help'''
 
-VERSION_NUMBER = '1.0'
+VERSION_NUMBER = '1.1'
 
 VERSION_TEXT = '%%prog version %s' % VERSION_NUMBER
 

File nosier/nosier.py

         for part in command:
             self.command.extend(part.split())
 
-    def do_command(self, change_set):
+    def do_command(self, command):
         """Invoke our command."""
 
-        subprocess.call(self.command + (list(change_set) if self.with_arguments else []))
+        subprocess.call(command)
 
     def do_run(self, change_set):
         """Perform a command run."""
 
-        self.reporter.begin_run(change_set, self.command)
-        self.do_command(change_set)
+        command = self.command + (list(change_set) if self.with_arguments else [])
+        self.reporter.begin_run(change_set, command)
+        self.do_command(command)
         ignored_change_set = self.change_monitor.clear() if self.ignore_events else set()
         self.reporter.end_run(ignored_change_set)
 
         parser.add_option('-r', '--no-initial-run', action='store_true', default=False,
                           help='''don't perform an initial run of the command, instead start monitoring and wait for changes''')
         parser.add_option('-a', '--with-arguments', action='store_true', default=False,
-                          help='''wether to pass the updated file path as an argument to the command run''')
+                          help='''whether to pass the updated file path as an argument to the command run''')
 
         options, command = parser.parse_args()