Skip to content

Commit

Permalink
Added descriptions for the commands
Browse files Browse the repository at this point in the history
  • Loading branch information
obvMellow committed Aug 31, 2024
1 parent b482e3a commit ef4d556
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,32 +53,43 @@ enum Commands {
#[arg(short, long, require_equals = true)]
output: Option<PathBuf>,
},
/// Uploads a file to Discord
Upload {
/// File to be uploaded
file: PathBuf,

/// Optionally use a token for this one time
#[arg(short, long, require_equals = true)]
token: Option<String>,

/// Optionally use a channel for this one time
#[arg(short, long, require_equals = true)]
channel: Option<u64>,
},
/// Downloads a file from Discord
Download {
/// Message ID for the file
message_id: u64,

/// Specifies the output file where the assembled file will be written to
#[arg(short, long, require_equals = true)]
output: Option<PathBuf>,

/// Optionally use a token for this one time
#[arg(short, long, require_equals = true)]
token: Option<String>,

/// Optionally use a channel for this one time
#[arg(short, long, require_equals = true)]
channel: Option<u64>,
},
/// Lists all the files uploaded to the channel
List {
/// Optionally use a token for this one time
#[arg(short, long, require_equals = true)]
token: Option<String>,

/// Optionally use a channel for this one time
#[arg(short, long, require_equals = true)]
channel: Option<u64>,
},
Expand Down

0 comments on commit ef4d556

Please sign in to comment.