From: Frédéric Péters Date: Sun, 11 Apr 2010 19:23:42 +0000 (+0200) Subject: print the command line to run if --test is passed as argument X-Git-Url: https://git.0d.be/?p=pige-extractor.git;a=commitdiff_plain;h=68fc739daa3e29eddcbdfdae63159dc54f667748 print the command line to run if --test is passed as argument --- diff --git a/download.cgi b/download.cgi index d0b13a8..2d75d47 100755 --- a/download.cgi +++ b/download.cgi @@ -148,5 +148,8 @@ if start != floor_start or end != ceil_end: trim_parts.append(str(trim_end)) command.extend(trim_parts) -os.system(' '.join(command)) +if '--test' in sys.argv: + print ' '.join(command) +else: + os.system(' '.join(command))