Coder Social home page Coder Social logo

Comments (5)

garrylachman avatar garrylachman commented on May 29, 2024
./covid19-cli.sh --country=USA 
 ✔  Country: USA
Cases: 14372, Deaths: 218, Recovered: 125

from covid19-cli.

seansco avatar seansco commented on May 29, 2024

I'm running Ubuntu 18.04.4 LTS

$ bash covid19-cli.sh --country=USA
✔ Global Statistics
Cases: 254801, Deaths: 10447, Recovered: 89915

$ bash covid19-cli.sh -c=USA
invalid option: -U

$ ./covid19-cli.sh --country=USA
✔ Global Statistics
Cases: 254801, Deaths: 10447, Recovered: 89915

$ ./covid19-cli.sh -c=USA
invalid option: -U

i$ ./covid19-cli.sh -h
covid19-cli.sh [OPTION]...

Corona Virus (Covid-19) statistics cli.

MIT License
Copyright (c) 2020 Garry Lachman
https://github.com/garrylachman/covid19-cli

Options:
-c, --country Specific Country
-l, --list-all List all countries
this through the interactive option
-h, --help Display this help and exit
--version Output version information and exit

i$ ./covid19-cli.sh --version
covid19-cli.sh v0.1

from covid19-cli.

JanBrezina avatar JanBrezina commented on May 29, 2024

@seansco pull, I believe it's fixed

from covid19-cli.

seansco avatar seansco commented on May 29, 2024

if I run it with bash it's is working now but if I run it as an executable I get a script error.

$ ./covid19-cli.sh
./covid19-cli.sh: 16: ./covid19-cli.sh: [[: not found
./covid19-cli.sh: 19: ./covid19-cli.sh: Syntax error: "(" unexpected

$ bash covid19-cli.sh
✔ Global Statistics
Cases: 255733, Deaths: 10495, Recovered: 89918

$ bash covid19-cli.sh --country=USA
✔ Country: USA
Cases: 14373, Deaths: 218, Recovered: 125

from covid19-cli.

JanBrezina avatar JanBrezina commented on May 29, 2024

@seansco different problem, change 'sh' to 'bash' on the first line and maybe create another issue

from covid19-cli.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.