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

Support directory name in -o CLI option #15471

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

straight-shoota
Copy link
Member

Resolves #15443

@straight-shoota straight-shoota force-pushed the feat/cli-output_path-dir branch from 729af58 to 217633e Compare February 13, 2025 23:55
@@ -139,7 +139,7 @@ Disable colored output.
.It Fl -no-codegen
Don't do code generation, just parse the file.
.It Fl o
Specify filename of output.
Specify output path. If a directory, the filename is derived from the first source file (default: ./)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

Suggested change
Specify output path. If a directory, the filename is derived from the first source file (default: ./)
Specify output path. If a directory, the filename is derived from the first source file (default is the current directory)

Same in command.cr.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd think ./ should be clearly understandable as a reference to the current directory? Then this is just more words to say the same thing.
Do you have any concerns that ./ would not be understood correctly?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand better the "current directory" words in a text than "./" which is first odd and then I understand "oh, dot, the current directory".

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

Successfully merging this pull request may close these issues.

The compiler's output path option should allow a directory path
2 participants