Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command line #35

Open
peter17 opened this issue Aug 4, 2011 · 1 comment
Open

Add a command line #35

peter17 opened this issue Aug 4, 2011 · 1 comment

Comments

@peter17
Copy link
Collaborator

peter17 commented Aug 4, 2011

Instead of copying the wikitext in wikitext.txt, running python parser.py and reading article.htm, one should be able to provide the file he/she wants and pass some parameters to the parser and get the result directly in the console to redirect it where he/she wants.

We can expect something like that: <project_name> -format html -allowed_tags b;i;center -allow_autoclose_tags br;hr -templates templates file.wiki

Where templates would be a directory containing the called templates in text files.

It should also be possible to store the allowed tags in a configuration file, as well as the correspondence between the interwiki prefixes and the foreign wiki URLs.

@erikrose
Copy link
Owner

erikrose commented Aug 4, 2011

argparse already has conventions for multiply-valued flags, so we should look at those first and see if they're too verbose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants