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

Generate output in HTML #52

Open
tomzx opened this issue Mar 13, 2015 · 3 comments
Open

Generate output in HTML #52

tomzx opened this issue Mar 13, 2015 · 3 comments

Comments

@tomzx
Copy link
Owner

tomzx commented Mar 13, 2015

In order for this tool to be reusable in other tools, it should be able to output in HTML.

Currently suggested option name is--to-html folder.

@tomzx tomzx added this to the Candidate for next Minor milestone Mar 13, 2015
@xabbuh
Copy link

xabbuh commented Mar 13, 2015

@tomzx What about adding a --format option for which text could be the default and then using the --to-file option proposed in #53 to dump the output to a file (regardless the format)?

@tomzx
Copy link
Owner Author

tomzx commented Mar 13, 2015

@xabbuh The issue is that HTML will probably end up containing a couple more files, namely js and css files (with the possibility of fonts as well). Thus, it would probably not make sense to use --to-file.

Furthermore, I think it's cleaner to specify outputs separately as you can output various formats all at once. I also don't like having "dependent" options, that is, what happens if I say --format text but do not put --to-file? Is the whole output supposed to be in the format specified? Is the option supposed to be ignored since I didn't pass where to write the results?

@xabbuh
Copy link

xabbuh commented Mar 14, 2015

I also don't like having "dependent" options, that is, what happens if I say --format text but do not put --to-file? Is the whole output supposed to be in the format specified? Is the option supposed to be ignored since I didn't pass where to write the results?

I think that's pretty fine and the nature how you use command-line tools on UNIX-like systems. For example, I may want to further process the output generated and pipe it to other commands.

@tomzx tomzx added the advanced label Aug 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants