[go: nahoru, domu]

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

[Question] Is it possible to implement the unix mv command? #2116

Open
kellyselden opened this issue Jan 5, 2022 · 1 comment
Open

[Question] Is it possible to implement the unix mv command? #2116

kellyselden opened this issue Jan 5, 2022 · 1 comment

Comments

@kellyselden
Copy link
Contributor
kellyselden commented Jan 5, 2022

Is it possible to implement the unix mv command?

command: `foo [src..] <dest>`

would be ideal to support foo src-file-1 src-file-2 dest-dir, but variable positional params only work as the last arg. Is this possible without doing something like foo --src src-file-1 src-file-2 -- dest-dir?

@jly36963 jly36963 self-assigned this Jan 10, 2022
@jly36963
Copy link
Contributor

Related to: #388

The way yargs-parser handles array options, positionals, and variadic positionals is pretty complex (IMO). I want to work on this feature, but it will likely take me a while.

@jly36963 jly36963 removed their assignment Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants