Add hru(1) #50
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
joke
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: bonsai/harakit#50
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "hru"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #33
Add hru(1)to WIP: Add hru(1)@ -0,0 +86,4 @@
Ok(f) => f,
Err(err) => {
eprintln!("{}: {}", argv[0], err);
exit(1);
Why
1
and not a sysexit?I’ve neither requested your review nor moved this out of WIP. That means this is not yet nearing completion. Here you will find your answer.
WIP: Add hru(1)to Add hru(1)Looks alright.
@ -0,0 +17,4 @@
Hru takes any whole number in the standard input and, to the standard output,
prints the equivalent number in the most human-readable unit defined by the
International System of Units.
Which unit? Kilometers?
@ -0,0 +27,4 @@
use sysexits::{ EX_DATAERR, EX_SOFTWARE };
const LIST: [(u32, &str); 10] = [
What's the significance of 10 here?
This is the size of the statically allocated array.
Pull request closed