Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002587graphvizDotpublic2016-01-15 22:222016-01-15 22:48
Reporteryurivict 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Summary0002587: [feature suggestion] Need command line parameter to limit the number of graphs in one session
DescriptionFor example, I want to process only one graph. Currently EOF from stdin is the only way to stop 'dot'. But sending EOF might be problematic in some contexts. For ex. popen call might not support EOF.

I suggest dot command should have the command line argument for this.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION
Attached Files

- Relationships

-  Notes
User avatar (0001013)
north (administrator)
2016-01-15 22:32

Here's a crazy thing: it turns out this undocumented feature already exists. For reasons too weird to explain, if you just put a plain @ after the graph body, that is interpreted by the lexical scanner as an EOF. This has been around almost forever in graphviz. Go for it.
e.g.
    digraph G {
        hello -> world
    }
    @
Stephen North
User avatar (0001014)
yurivict (reporter)
2016-01-15 22:48

This works, thanks!

I think you can add a line about this to dot's manpage.

- Issue History
Date Modified Username Field Change
2016-01-15 22:22 yurivict New Issue
2016-01-15 22:32 north Note Added: 0001013
2016-01-15 22:48 yurivict Note Added: 0001014


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker