diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2009-02-28 15:51:41 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2009-02-28 15:51:41 +1300 |
commit | b357f07faf9f23afc6a74a8e22d469fcbc020f2c (patch) | |
tree | f6ce0d37df046977a4eb62d0db88dfabb54dafbc /asciidoc.py | |
parent | e24be36a446f7ca7235b3bf899ebc6e11447191d (diff) | |
download | asciidoc-py3-b357f07faf9f23afc6a74a8e22d469fcbc020f2c.tar.gz |
Dropped broken undocumented --profile option.
Diffstat (limited to 'asciidoc.py')
-rwxr-xr-x | asciidoc.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/asciidoc.py b/asciidoc.py index 84c67f5..06ba608 100755 --- a/asciidoc.py +++ b/asciidoc.py @@ -4918,10 +4918,10 @@ def main(): opts,args = getopt.getopt(sys.argv[1:], 'a:b:cd:ef:hno:svw:', ['attribute=','backend=','conf-file=','doctype=','dump-conf', - 'help','no-conf','no-header-footer','out-file=','profile', + 'help','no-conf','no-header-footer','out-file=', 'section-numbers','verbose','version','safe','unsafe']) except getopt.GetoptError: - usage() + usage('illegal command options') sys.exit(1) if len(args) > 1: usage() @@ -4931,13 +4931,10 @@ def main(): confiles = [] outfile = None options = [] - prof = False help_option = False for o,v in opts: if o in ('--help','-h'): help_option = True - if o == '--profile': - prof = True if o == '--unsafe': document.safe = False if o == '--version': @@ -5003,12 +5000,7 @@ def main(): if outfile and outfile != '<stdout>': outfile = os.path.abspath(outfile) # Do the work. - if prof: - import profile - profile.run("asciidoc('%s','%s',(),'%s',None,())" - % (backend,doctype,infile)) - else: - asciidoc(backend, doctype, confiles, infile, outfile, options) + asciidoc(backend, doctype, confiles, infile, outfile, options) if document.has_errors: sys.exit(1) |