Skip to content

Commit

Permalink
fix options not working - add a changelog file (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkwalExe authored Apr 7, 2022
1 parent 907302d commit 415c6d8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# v0.2.1
- fixed important bug : -b/-c options not working
- added a CHANGELOG file
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "linux-on-drugs"
version = "0.2.0"
version = "0.2.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ docker build -t linux-on-drugs .
docker run --rm -it linux-on-drugs [OPTIONS]
```

# Change log 📝

For version updates and bug fixes, please see our [CHANGELOG](CHANGELOG.md)

# final

If you have any problem, don't hesitate to open an issue
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn main() {
while args.len() > 0 {
match args[0].as_str() {
"-c" | "--content" => {
if args.len() > 1 {
if ! args.len() > 1 {
// if no argument is provided after the flag
// print an error message and exit
println!(
Expand All @@ -75,7 +75,7 @@ fn main() {
}
}
"-b" | "--block-size" => {
if args.len() > 1 {
if ! args.len() > 1 {
println!(
"{}[ x ] : Error: Argument needed after -b/--block-size{}",
RED, RESET
Expand Down

0 comments on commit 415c6d8

Please sign in to comment.