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

Application outputs error when no input Error: Missing required parameter "tweet urls" #24

Open
Zcehtro opened this issue Feb 17, 2022 · 0 comments

Comments

@Zcehtro
Copy link

Zcehtro commented Feb 17, 2022

Is your feature request related to a problem?

Makes it more presentable.

Describe the solution you'd like

What kind of solution would you like to see?
Have the -h flag be described as Show help (this screen)
Also, first line of output in -h or no input could be a line that explains what the program does: ie. Command-line tool to capture clean and simple tweet snapshots.

What makes it a good solution?
Makes it friendlier, presentable.
Seems nice when running the application without any input that you didn't get anything wrong. Same as running with -h flag.

Describe alternatives you've considered

Running with -h.

Additional context

Default ouput when no input.

Error: Missing required parameter "tweet urls"

snap-tweet v1.2.2

Usage:
  snap-tweet [flags...] <tweet urls...>

Flags:
  -d, --dark-mode                Show tweet in dark mode
  -h, --help                     Show help
      --locale <locale>          Locale (default: "en")
  -o, --output-dir <path>        Tweet screenshot output directory
  -t, --show-thread              Show tweet thread
      --version                  Show version
  -w, --width <width>            Width of tweet (default: 550)

Examples:
  # Snapshot a tweet
  snap-tweet https://twitter.com/jack/status/20

  # Snapshot a tweet with Japanese locale
  snap-tweet https://twitter.com/TwitterJP/status/578707432 --locale ja

  # Snapshot a tweet with dark mode and 900px width
  snap-tweet https://twitter.com/Interior/status/463440424141459456 --width 900 --dark-mode
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

1 participant