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

unable to upload multiple recordings at once #629

Closed
evakhoni opened this issue May 12, 2024 · 4 comments
Closed

unable to upload multiple recordings at once #629

evakhoni opened this issue May 12, 2024 · 4 comments

Comments

@evakhoni
Copy link

evakhoni commented May 12, 2024

Describe the bug
trying to upload multiple recordings at once,
the software recognizes the additional files as unrecognized arguments

To Reproduce
❯ asciinema upload *.cast
usage: asciinema [-h] [--version] {rec,play,cat,upload,auth} ...
asciinema: error: unrecognized arguments: details.cast main.cast status.cast

Expected behavior
upload successful
or at least a reasonable message

Versions:

  • Fedora release 39
  • asciinema 2.3.0
@moritzdietz
Copy link

moritzdietz commented May 15, 2024

May I suggest:

for recording in details.cast main.cast status.cast; do asciinema upload "$recording"; done

@ku1ik
Copy link
Contributor

ku1ik commented May 15, 2024

That's what I'd suggest as well. Thanks @moritzdietz.

@ku1ik ku1ik closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
@evakhoni
Copy link
Author

yeah there are definitely workarounds available for this one. just the current situation of it recognizing it as unrecognized arguments seems buggy to my eyes

@ku1ik
Copy link
Contributor

ku1ik commented May 15, 2024

> asciinema upload --help
Upload a recording to an asciinema server

Usage: asciinema upload [OPTIONS] <FILENAME>

Arguments:
  <FILENAME>  Filename/path of asciicast to upload

Options:
      --server-url <SERVER_URL>  asciinema server URL
  -q, --quiet                    Quiet mode, i.e. suppress diagnostic messages
  -h, --help                     Print help

The help message clearly states it accepts 1 filename so it works as expected.

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

No branches or pull requests

3 participants