diff --git a/src/cli.rs b/src/cli.rs index b03ddb7..8300809 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -209,7 +209,8 @@ impl Command { if args.len() <= 2 + (index) { return Some(Value::Missing(format!( "{} could not be found in its location ({})", - option_name, index + option_name, + index + 1 ))); } diff --git a/wiki/Home.md b/wiki/Home.md index 0c0e19a..df6661d 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -40,62 +40,61 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases ## Commands ``` - help - Prints help information - A command to help with - version - Prints version information - decode - Converts 8xp to txt - The input path to an 8xp file - -o --output The output path to a txt file - -d --display-mode The characters to translate the tokens to [pretty, accessible, ti] | Default: accessible - -c --content <> Display the content of the input file - -p --preview <> Preview the output file in the terminal - encode - Converts txt to 8xp - The input path to an 8xp file - -o --output The output path to a 8xp file - -e --encode-mode The mode used to parse tokens [min, max, smart] | Default: smart - -c --content <> Display the content of the input file - -p --preview <> Preview the output file in the terminal - rename - Renames the program name in a 8xp file - The input path to an 8xp file - -n --name New program number (8 or less uppercase alphabetic characters) - -f --new-file Save the renamed program to a new file - -d --delete-old <> Delete the old file - comment - Write a custom comment to an 8xp file - The input path to an 8xp file - -c --comment New program comment (42 or less characters) - -f --new-file Save the program with a new comment to a new file - -d --delete-old <> Delete the old file - lock - Lock an 8xp file - The input path to an 8xp file - -f --new-file Save the locked program to a new file - -d --delete-old <> Delete the old file - unlock - unlock an 8xp file - The input path to an 8xp file - -f --new-file Save the unlocked program to a new file - -d --delete-old <> Delete the old file - archive - Archive an 8xp file - The input path to an 8xp file - -f --new-file Save the archived program to a new file - -d --delete-old <> Delete the old file - unarchive - Unarchive an 8xp file - The input path to an 8xp file - -f --new-file Save the un-archived program to a new file - -d --delete-old <> Delete the old file - details - Displays information about an 8xp file - The input path to an 8xp file - models - Prints the supported TI calculator models + help - Prints help information + command (optional) The command you want help with + + version - Prints version information + + decode - Converts 8xp/82p/83p to txt + input (required) The input path to an 8xp/82p/83p file + -o --output The output path to a txt file + -d --display-mode The characters to translate the tokens to [pretty, accessible, ti] | Default: accessible + -c --content Display the content of the input file + -p --preview Display the decoded output + + encode - Converts txt to 8xp + input (required) The input path to an txt file + -o --output The output path to an 8xp/82p/83p file + -e --encode-mode The mode used to parse tokens [min, max, smart] | Default: smart + -c --content Display the content of the input file + -p --preview Display the decoded output + + rename - Renames the program name in a 8xp/82p/83p file + input (required) The input path to an 8xp/82p/83p file + -n --name The new program name (8 or less alphabetic characters) + -f --new-file Save the renamed program to a new file + -d --delete-old Delete the old file + + comment - Write a custom comment to an 8xp/82p/83p file + input (required) The input path to an 8xp/82p/83p file + -c --comment The new program comment (42 or less characters) + -f --new-file Save the program with the updated comment to a new file + -d --delete-old Delete the old file + + lock - Lock an 8xp/82p/83p file + input (required) The input path to an 8xp/82p/83p file + -f --new-file Save the locked program to a new file + -d --delete-old Delete the old file + + unlock - unlock an 8xp/82p/83p file + input (required) The input path to an 8xp/82p/83p file + -f --new-file Save the unlocked program to a new file + -d --delete-old Delete the old file + + archive - Set the program to be sent to Archive + input (required) The input path to an 8xp/82p/83p file + -f --new-file Save the archived program to a new file + -d --delete-old Delete the old file + + unarchive - Set the program to be sent to RAM + input (required) The input path to an 8xp/82p/83p file + -f --new-file Save the un-archived program to a new file + -d --delete-old Delete the old file + + details - Displays information about an 8xp/82p/83p file + input (required) The input path to an 8xp/82p/83p file + + models - Prints the supported TI calculator models ``` ## Examples