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

Improve docs or fix parameter order #100

Closed
iago1460 opened this issue Jul 20, 2017 · 3 comments
Closed

Improve docs or fix parameter order #100

iago1460 opened this issue Jul 20, 2017 · 3 comments

Comments

@iago1460
Copy link

If the extra parameters are at the end, like in unix style, are ignored:
flash hypriotos-rpi-v1.4.0.img.zip --device disk4 --config device-init.yaml --bootconf config.txt
device, config and bootconf are being ignored without raising any warning.

The current way is:
flash --device disk4 --config device-init.yaml --bootconf config.txt hypriotos-rpi-v1.4.0.img.zip
which is a bit weird.

Thanks

@StefanScherer
Copy link
Member

Yes, options after the SD card does not work, but that's "standard" in the getopts we use in the script. If you know another way, let me know.

So showing the usage in https://github.com/hypriot/flash#usage didn't help you?

$ flash --help
usage: /Users/stefan/bin/flash [options] name-of-rpi.img

@iago1460
Copy link
Author

I missed that bit, but I still think that raising some kind of error/warning if any parameter is not processed would be ideal.

@StefanScherer
Copy link
Member

Closing due to inactivity.

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

2 participants