Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.

Feature Request: Add option for command line parameters #13

Open
GIJack opened this issue Feb 21, 2021 · 6 comments
Open

Feature Request: Add option for command line parameters #13

GIJack opened this issue Feb 21, 2021 · 6 comments

Comments

@GIJack
Copy link

GIJack commented Feb 21, 2021

I would like to be able to run scripts with command line parameters. This would be a big help. Especially if they can be copypasted.

@sunilpaulmathew
Copy link
Contributor

ommand line parameters. This would be a big help. Especially

I really don't understand. Can you tell me more? Probably, an example?
Thanks.

@GIJack
Copy link
Author

GIJack commented Feb 22, 2021

so, instead of just running

#!/usr/bin/bash

echo hello world $1 $2 $3

./shell.sh
Hello World

./shell.sh item1 item2 item3
Hello World item1 item2 item3

see?

@Mitezuss
Copy link

Like this:

  1. Creating (can add variables):
    1
  2. When run (ask for variables):
    2
  3. Writing the variables:
    ImgSnap - 15-04-21 ~ 15 02 25
  4. After running:
    ImgSnap - 15-04-21 ~ 15 02 33

@GIJack
Copy link
Author

GIJack commented Apr 15, 2021

That works

@sunilpaulmathew
Copy link
Contributor

@Mitezuss
Atm, I really don't have any idea to implement it. Also, even I managed to do it, how app handles it when user set such a script on boot?

@GIJack
Copy link
Author

GIJack commented Apr 17, 2021

add the variables to the command line when you execute the script in order?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants