2188c2b746
* tsk-77: Added code to print version * tsk-77: Removed print statement * tsk-77: Code formatting * tsk-77: Version bump * tsk-77: Updated help
41 lines
944 B
Rust
41 lines
944 B
Rust
pub fn print_help() {
|
|
let msg: String = String::from(
|
|
r#"icd [Action] [flag]
|
|
|
|
Actions
|
|
download
|
|
upload-meta
|
|
retrieve
|
|
delete
|
|
|
|
Flags
|
|
Required for all actions
|
|
-u username
|
|
-p password
|
|
-h api host
|
|
-ha auth api host
|
|
|
|
Required for upload with metadata
|
|
-s path of song
|
|
-t track number
|
|
-m metadata filepath
|
|
-ca coverart filepath
|
|
-scma directory where songs, metadata, and cover art exists and will be uploaded (Optional)
|
|
|
|
Required for download
|
|
-b song id
|
|
-d path to download song (Optional)
|
|
|
|
Required for retrieving records
|
|
-rt retrieve type (songs is only accepted)
|
|
|
|
Required for deleting a song
|
|
-D song id
|
|
|
|
Print version
|
|
-v"#,
|
|
);
|
|
|
|
println!("{msg}");
|
|
}
|