cmd: rename dataunit to datasize
This commit is contained in:
parent
13897bf625
commit
d744ebf9f2
@ -23,17 +23,12 @@
|
|||||||
|
|
||||||
// For more information, please refer to <https://unlicense.org/>
|
// For more information, please refer to <https://unlicense.org/>
|
||||||
|
|
||||||
/*
|
|
||||||
dataunit - a simple CLI tool for data units convertion.
|
|
||||||
*/
|
|
||||||
|
|
||||||
module main
|
module main
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import flag
|
import flag
|
||||||
import dataunits
|
import dataunits
|
||||||
|
|
||||||
@[name: 'dataunit']
|
|
||||||
struct FlagConfig {
|
struct FlagConfig {
|
||||||
help bool
|
help bool
|
||||||
from string @[short: f]
|
from string @[short: f]
|
||||||
@ -55,7 +50,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
if flags.help {
|
if flags.help {
|
||||||
println('convert the value between data size units.')
|
println('convert the value between data size units.')
|
||||||
println('usage: dataunit -f <unit> -t <unit> <value>')
|
println('usage: datasize -f <unit> -t <unit> <value>')
|
||||||
println('options:')
|
println('options:')
|
||||||
println(' -help print this help message and exit')
|
println(' -help print this help message and exit')
|
||||||
println(' -f, -from source data unit')
|
println(' -f, -from source data unit')
|
Loading…
x
Reference in New Issue
Block a user