Skip to content

Use multiple strings to represent the name #873

Open
@g1eny0ung

Description

@g1eny0ung

Search before asking

  • 我在 issues 列表中搜索,没有找到类似的内容。
    I searched in the issues and found nothing similar.

Motivation

I use a Mac for my daily work. Most apps I used have spaces between their names (aka a normal, no-symbol name). Can we specify the name with spaces before building?

For example, I want to wrap Google Translate with Pake, and I can specify its name as "Google Translate" rather than "GoogleTranslate" or "Google-Translate".

Solution

I took an investigation and found https://github.com/tj/commander.js#variadic-option. Using the variadic option can take multiple strings into an array, then we can turn this array into a string with spaces with the .join() method.

Alternatives

No response

Anything else?

But I'm not sure if it can be set the application name to a normal name on Windows or Linux? I haven't used these platforms for a long time.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions