Skip to content

Added script for the generation of state diagrams#29

Open
AlkisPlas wants to merge 3 commits intodspinellis:masterfrom
AlkisPlas:master
Open

Added script for the generation of state diagrams#29
AlkisPlas wants to merge 3 commits intodspinellis:masterfrom
AlkisPlas:master

Conversation

@AlkisPlas
Copy link
Copy Markdown

This provides a first approach to the declarative specification and drawing of UML state diagrams.

@dspinellis
Copy link
Copy Markdown
Owner

Interesting. Please add examples and documentation (under doc).

@dspinellis
Copy link
Copy Markdown
Owner

  • Regarding the interface please make it as follows

stategraph [-o output_file] [-v] [input file]

If no files are given, it acts as a filter from stdin to stdout
-v is used for view

  • Use getopt to parse the arguments
  • The customary dot extension is .dot, but you shouldn't be using it in the code as an implicit extension. Use whatever the user provides.

@AlkisPlas
Copy link
Copy Markdown
Author

I have already changed the interface that way but I did it using the argparse module.
Would you like me to use getopt instead?
The result will be the same.

@dspinellis
Copy link
Copy Markdown
Owner

argparse is fine.

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

Successfully merging this pull request may close these issues.

2 participants