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

Can not specify exported file-name without specify title #124

Open
dungbuike-prts opened this issue Jul 14, 2023 · 0 comments
Open

Can not specify exported file-name without specify title #124

dungbuike-prts opened this issue Jul 14, 2023 · 0 comments

Comments

@dungbuike-prts
Copy link

Environment:

  • MacBook Pro 2023
  • Apple Silicon M2
  • macOS 13.3.1

When I exported the graph locally by command

pluralith graph --local-only --show-changes --file-name Pluralith_Diagram_Diff

It exported a PDF file named Pluralith_Diagram.pdf by default without any error or warning.

I have researched and understood the cause of this code

	// Set defaults for export
	if exportArgs["title"] == "" {
		exportArgs["title"] = "Pluralith Diagram"     //+ exportArgs["runId"].(string)
		exportArgs["file-name"] = "Pluralith_Diagram" //+ exportArgs["runId"].(string)
	}

https://github.com/Pluralith/pluralith-cli/blob/main/app/pkg/graph/PreGraph.go#L34-L38

If --title is not specified, it will override option --file-name

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 a pull request may close this issue.

1 participant